Part Number Hot Search : 
SKDH230 DS2430AR LC552 SKM15 PIC16F62 SM6009 FZ44ZS A1204
Product Description
Full Text Search
 

To Download SC28L198A1BE Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
   

sc28l198 octal uart for 3.3 v and 5 v supply voltage product data sheet supersedes data of 1999 jan 14 2006 aug 10 integrated circuits
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2 2006 aug 10 table of contents description 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . uses 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . features 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pin configurations 4 . . . . . . . . . . . . . . . . . . . . . . . . . pinout 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pin description 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . absolute maximum ratings 6 . . . . . . . . . . . . . . . . . block diagram 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . functional description 7 . . . . . . . . . . . . . . . . . . . . . conceptual overview 7 . . . . . . . . . . . . . . . . . . . . . . . host interface 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . asynchronous bus cycle 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . synchronous bus cycle 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . timing circuits 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . crystal oscillator 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sclk system clock 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . baud rate generator brg 8 . . . . . . . . . . . . . . . . . . . . . . . . brg counters (used for random baud rate generation) 8 channel blocks 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . character recognition 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . interrupt control 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . global registers 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i/o ports 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . detailed descriptions 9 . . . . . . . . . . . . . . . . . . . . . . . receiver and transmitter 9 . . . . . . . . . . . . . . . . . . . transmitter 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . status bits 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . transmission of obreako 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1x and 16x modes, transmitter 10 . . . . . . . . . . . . . . . . . . . . . transmitter fifo 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . receiver 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1x and 16x mode, receiver 10 . . . . . . . . . . . . . . . . . . . . . . . . . receiver status bits 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . receiver fifo 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . rxfifo status: status reporting modes 11 . . . . . . . . . . . . . . i/o ports 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . general purpose pins 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . global registers 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . character recognition 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xon xoff characters 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . multi-drop or wake up or 9 bit mode 12 . . . . . . . . . . . . . . . . . character stripping 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . interrupt arbitration and irqn generation 12 . . . . . . . . . . . . . . . . iackn cycle, update cir 13 . . . . . . . . . . . . . . . . . . . . . . . . . . polling 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . enabling and activating interrupt sources 13 . . . . . . . . . . . . . setting interrupt priorities 13 . . . . . . . . . . . . . . . . . . . . . . . . . . modes of operation 14 . . . . . . . . . . . . . . . . . . . . . . . . major modes 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . minor modes 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . watch-dog timer timeout mode 15 . . . . . . . . . . . . . . . . . . . wake up mode 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xon/xoff operation 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . register definitions 18 . . . . . . . . . . . . . . . . . . . . mr mode registers 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ucir update cir 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . general purpose output pin control 30 . . . . . . . . register maps 31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . register map summary 31 . . . . . . . . . . . . . . . . . . . . . register map detail 32 . . . . . . . . . . . . . . . . . . . . . . . . reset conditions 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . device configuration after hardware reset or cra cmd=x1f 41 cleared registers: 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . clears modes for: 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . disables: 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . halts: 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . limitations: 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dc electrical specifications (5v) 42 . . . . . . . . . . . . ac electrical characteristic (5v) 43 . . . . . . . . . . . . dc electrical specifications (3.3v) 45 . . . . . . . . . . ac electrical characteristics (3.3v) 46 . . . . . . . . . . index 52 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . description the philips 28l198 octal uart is a single chip cmoslsi communications device that provides 8 full-duplex asynchronous channels with significantly deeper 16 byte fifos, automatic inband flow control using xon/xoff characters defined by the user and address recognition in the wake up mode. synchronous bus interface is used for all communication between host and octart. it is fabricated using philips 1.0 micron cmos technology that combines the benefits of low cost, high density and low power consumption. the operating speed of each receiver and transmitter can be selected independently from one of 22 fixed baud rates, a 16x clock derived from one of two programmable baud rate counters or one of three external 16x clocks (1 available at 1x clock rate). the baud rate generator and counter can operate directly from a crystal or from seven other external or internal clock inputs. the ability to independently program the operating speed of the receiver and transmitter makes the octal uart particularly attractive for dual speed full duplex channel applications such as clustered terminal systems. the receivers and transmitters are buffered with fifos of 16 characters to minimize the potential for receiver overrun and to reduce interrupt overhead. in addition, a handshaking capability and inband flow control are provided to disable a remote uart transmitter when the receiver buffer is full or nearly so. to minimize interrupt overhead an interrupt arbitration system is included which reports the context of the interrupting uart via direct access or through the modification of the interrupt vector. the context of the interrupt is reported as channel number, type of device interrupting (receiver cos etc.) and, for transmitters or receivers, the fill level of the fifo. the octal uart provides a power down mode in which the oscillator is stopped but the register contents are maintained. this results in reduced power consumption of several orders of magnitudes. the octal uart is fully ttl compatible when operating from a single +5v power supply. operation at 3.3 volts is maintained with cmos interface levels. the device also offered in a version which maintains ttl input and output levels while operating with a 3.3 volt power supply.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 3 uses statistical multiplexers data concentrators packetswitching networks process control building or plant control laboratory data gathering isdn front ends computer networks pointofsale terminals automotive, cab and engine controls entertainment systems middi keyboard control music systems theater lighting control terminal servers computerprinter/plotter links features ? single 3.3v and 5v power supply ? eight philips industry standard full duplex uart channels ? sixteen byte receiver fifos for each uart ? sixteen byte transmit fifos for each uart ? in band flow control using programmable xon/xoff characters ? flow control using ctsn rtsn hardware handshaking ? automatic address detection in multi-drop mode ? three byte general purpose character recognition ? fast data bus, 30 ns data bus release time, 125 ns bus cycle time ? programmable interrupt priorities ? automatic identification of highest priority interrupt pending ? global interrupt and control registers ease setup and interrupt handling ? vectored interrupts with programmable interrupt vector formats interrupt vector modified with channel number interrupt vector modified with channel number and channel type interrupt vector not modified ? iackn and dackn signal pins ? watch dog timer for each receiver (64 receive clock counts) ? programmable data formats: 5 to 8 data bits plus parity odd, even force or no parity 1, 1.5 or 2 stop bits ? flexible baud rate selection for receivers and transmitters: 22 fixed rates; 50 230.4k baud or 100 to 460.8k baud additional nonstandard rates to 500k baud with internal generators two reloadcounters provide additional programmable baud rate generation external 1x or 16x clock inputs simplified baud rate selection ? 1 mhz 1x and 16x data rates full duplex all channels. ? parity, framing and overrun error detection ? false start bit detection ? line break detection and generation ? programmable channel mode normal(full duplex) diagnostic modes automatic echo local loop back remote loop back ? four i/o ports per uart for modem controls, clocks, rtsn, i/o etc. all i/o ports equipped with ochange of state detectorso ? two global inputs and two global outputs for general purpose i/o ? power down mode ? on chip crystal oscillator, 28 mhz ? ttl input levels. outputs switch between full v cc and v ss ? high speed cmos technology ? 84 pin plcc ? 100 pin lqfp ordering information v cc = 3.3 v 10 % v cc = 5 v 10 % packages industrial 1 industrial 1 dwg # industrial 40 c to +85 c industrial 40 c to +85 c 84-pin plastic leaded chip carrier (plcc) sc28l198a1a sc28l198a1a sot189-2 100-pin plastic lowprofile quad flat pack (lqfp) SC28L198A1BE SC28L198A1BE sot4071 notes: 1. for availability, please contact factory.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 4 plcc84 pin configuration 11 1 75 12 32 33 53 54 74 84-pin plcc top view 84 plcc84 pinout pin function pin function pin function 1 v ss 29 i/o1d 57 i/o2g 2 v cc 30 i/o2d 58 i/o1g 3 cen 31 i/o3d 59 i/o0g 4 w_rn 32 rxdd 60 rxdg 5 a2 33 vss 61 txdg 6 a1 34 txdd 62 v ss 7 a0 35 resetn 63 x1 8 dackn 36 gin0 64 x2 9 i/o0a 37 gout0 65 txdf 10 i/o1a 38 d0 66 i/o3f 11 rxda 39 d1 67 i/o2f 12 rxdb 40 d2 68 i/o1f 13 i/o2a 41 d3 69 i/o0f 14 i/o3a 42 v ss 70 txde 15 txda 43 v cc 71 i/o3e 16 i/o0b 44 d4 72 i/o2e 17 i/o1b 45 d5 73 i/o1e 18 i/o2b 46 d6 74 rxdf 19 i/o3b 47 d7 75 rxde 20 txdb 48 gin1 76 i/o0e 21 i/o0c 49 i/o3h 77 irqn 22 vss 50 i/o2h 78 a7 23 i/o1c 51 i/o1h 79 a6 24 i/o2c 52 i/o0h 80 a5 25 i/o3c 53 vss 81 a4 26 txdc 54 rxdh 82 a3 27 rxdc 55 txdh 83 iackn 28 i/o0d 56 i/o3g 84 sclk
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 5 lqfp100 pin configuration 100 76 1 25 26 50 51 75 100pin lqfp top view lqfp100 pinout pin function pin function pin function pin function 1 n/c 26 v ss 51 n/c 76 n/c 2 rxdb 27 txdd 52 n/c 77 rxde 3 i/02a 28 resetn 53 rxdh 78 i/o0e 4 i/03a 29 g in 0 54 txdh 79 irqn 5 txda 30 g out 0 55 i/o3g 80 a7 6 i/o0b 31 d0 56 i/o2g 81 a6 7 i/o1b 32 d1 57 i/o1g 82 a5 8 i/o2b 33 d2 58 i/o0g 83 a4 9 i/o3b 34 d3 59 rxdg 84 a3 10 txdb 35 v ss 60 txdg 85 iackn 11 i/o0c 36 v ss 61 v ss 86 sclk 12 v ss 37 v cc 62 v ss 87 v ss 13 v ss 38 v cc 63 x1 88 v ss 14 i/o1c 39 d4 64 x2 89 v cc 15 i/o2c 40 d5 65 txdf 90 v cc 16 i/o3c 41 d6 66 i/o3f 91 cen 17 txdc 42 d7 67 i/o2f 92 w_rn 18 rxdc 43 g in 1 68 i/o1f 93 a2 19 i/o0d 44 g out 1 69 i/o0f 94 a1 20 i/o1d 45 i/o3h 70 txde 95 ja0 21 i/o2d 46 i/o2h 71 i/o3e 96 dackn 22 i/o3d 47 i/o1h 72 i/o2e 97 i/o0a 23 rxdd 48 i/o0h 73 i/o1e 98 i/o1a 24 n/c 49 v ss 74 rxdf 99 rxda 25 n/c 50 v ss 75 n/c 100 n/c
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 6 pin description mnemonic type description sclk i host system clock. used to time operations in the host interface and clock internal logic. must be greater than twice the frequency of highest x1, counter/timer, txc (1x) or rxc (1x) input frequency. cen i chip select: active low. when asserted, allows i/o access to octart registers by host cpu. w_rn signal indicates direction. ( must not be active in iackn cycle ) a(7:0) i address lines (a[6] is not used. see ohost interfaceo ) d(7:0) i/o 8bit bidirectional data bus. carries command and status information between 28l198 and the host cpu. used to convey parallel data for serial i/o between the host cpu and the 28l198 w_rn i write read not control: when high indicates that the host cpu will write to a 28l198 register or transmit fifo. when low, indicates a read cycle. 0 = read; 1 = write dackn o data acknowledge: active low. when asserted, it signals that the last transfer of the d lines is complete. open drain. irqn o interrupt request: active low. when asserted, indicates that the 28l198 requires service for pending inter- rupt(s). open drain. iackn i interrupt acknowledge: active low. when asserted, indicates that the host cpu has initiated an interrupt ac- knowledge cycle. (do not use cen in an iackn cycle) td(ah) o transmit data: serial outputs from the 8 uarts. rd(ah) i receive data: serial inputs to the 8 uarts i/o0(ah) i/o input/output 0: multiuse input or output pin for the uart. i/o1(ah) i/o input/output 1: multiuse input or output pin for the uart. i/o2(ah) i/o input/output 2: multiuse input or output pin for the uart. i/o3(ah) i/o input/output 3: multiuse input or output pin for the uart. g in (1:0) i global general purpose inputs, available to any/all channels. g out 0 o global general purpose outputs, available from any channel. resetn i master reset: active low. must be asserted at power up and may be asserted at other times to reset and re- start the system. see areset conditionso at end of register map. minimum width 10 sclk. x1/cclk i crystal 1 or communication clock: this pin may be connected to one side of a 28 mhz crystal. it may alter- natively be driven by an external clock in this frequency range. standard frequency = 3.6864 mhz x2 o crystal 2: if a crystal is used, this is the connection to the second terminal. if a clock signal drives x1, this pin must be left unconnected. power supplies i 8 pins total 6 pins for vss, 2 pins for v cc note: many output pins will have very fast edges, especially when lightly loaded (less than 20 pf.) these edges may move as fas t as 1 to 3 ns fall or rise time. the user must be aware of the possible generation of ringing and reflections on improperly terminated inter connections. see previous note on sclk noise under pin assignments. absolute maximum ratings 1 symbol parameter rating unit t a operating ambient temperature range 2 see note 3 ?c t stg storage temperature range 65 to +150 ?c v cc voltage from v cc to vss 4 0.5 to +7.0 v v ss voltage from any pin to vss 0.5 to vcc + 0.5 v p d package power dissipation (plcc) 3.78 w p d package power dissipation (lqfp) 2.08 w derate above 25 c (plcc pkg.) 30 mw/ c derate above 25 c (lqfp pkg.) 17 mw/ c notes: 1. stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only and the functional operation of the device at these or any other conditions above those indicated in the operation section of this specification is not implied. 2. for operating at elevated temperatures, the device must be derated based on +150 c maximum junction temperature. 3. parameters are valid over specified temperature range. see ordering information table for applicable temperature range and op erating supply range. 4. this product includes circuitry specifically designed for the protection of its internal devices from damaging effects of exc essive static charge.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 7 block diagram block diagram sc28c/28l198 host interface timing and baud rate generator interrupt arbitration i/o port timing and interface full duplex uart channel full duplex uart channel full duplex uart channel full duplex uart channel full duplex uart channel full duplex uart channel full duplex uart channel full duplex uart channel input buffers and output drivers data drivers and modem interface sd00193 as shown in the block diagram, the octal uart consists of: an interrupt arbiter, host interface, timing blocks and eight uart channel blocks. the eight channels blocks operate independently, interacting only with the timing, host i/f and interrupt blocks. functional description the sc28l198 is composed of several functional blocks: ? synchronous host interface block ? a timing block consisting of a common baud rate generator making 22 industry standard baud rates and 2 16bit counters used for nonstandard baud rate generation ? 4 identical independent full duplex uart channel blocks ? interrupt arbitration system evaluating 24 contenders ? i/o port control section and change of state detectors. conceptual overview host interface the host interface is comprised of the signal pins cen, w/rn, iackn, dackn, irqn sclk and provides all the control for data transfer between the external and internal data buses of the host and the octart. the host interface operates in a synchronous mode with the system (sclk) which has been designed for a nominal operating frequency of 33 mhz. the interface operates in either of two modes; synchronous or asynchronous to the sclk however the bus cycle within the octart always takes place in four sclk cycles after cen is recognized. these four cycles are the c1, c2, c3, c4 periods shown in the timing diagrams. dackn always occurs in the c4 time and occurs approximately 18 ns after the rising edge of c4. addressing of the various functions of the octart is through the address bus a(7:0). the 28l198 is compatible with the sc28l198 octal uart in software and function. a[7], in a general sense, is used to separate the data portion of the circuit from the control portion. asynchronous bus cycle the asynchronous mode requires one bus cycle of the chip select (cen) for each read or write to the chip. no more action will occur on the bus after the c4 time until cen is returned high. synchronous bus cycle in the synchronous mode a read or write will be done every four cycles of the sclk. cen does not require cycling but must remain low to keep the synchronous accesses active. this provides a burst mode of access to the chip. in both cases each read or write operation(s) will be completed in four (4) sclk cycles. the difference in the two modes is only that the asynchronous mode will not begin another bus cycle if the cen remains active after the four internal sclk have completed. internally the asynchronous cycle will terminate after the four periods of sclk regardless of how long cen is held active in all cases the internal action will terminate at the withdrawal of cen. synchronous cen cycles shorter than multiples of four sclk cycles minus 1 sclk and asynchronous cen cycles shorter than four sclk cycles may cause short read or write cycles and produce corrupted data transfers. timing circuits the timing block consists of a crystal oscillator, a fixed baud rate generator (brg), a pair of programmable 16 bit register based
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 8 counters. a buffer for the system clock generates internal timing for processes not directly concerned with serial data flow. crystal oscillator the crystal oscillator operates directly from a crystal, tuned between 1.0 and 8.0 mhz, connected across the x1/cclk and x2 inputs with a minimum of external components. brg values listed for the clock select registers correspond to a 3.6864 mhz crystal frequency. use of a 7.3728 mhz crystal will double the communication clock frequencies. an external clock in the 100 khz to 10 mhz frequency range may be connected to x1/cclk. if an external clock is used instead of a crystal, x1/cclk must be driven and x2 left floating. the x1 clock serves as the basic timing reference for the baud rate generator (brg) and is available to the brg timers . the x1 oscillator input may be left unused if the internal brg is not used and the x1 signal is not selected for any counter input. sclk system clock a clock frequency, within the limits specified in the electrical specifications, must be supplied for the system clock sclk. to ensure the proper operation of internal controllers, the sclk frequency provided, must be strictly greater than twice the frequency of x1 crystal clock, or any external 1x data clock input. the system clock serves as the basic timing reference for the host interface and other internal circuits. baud rate generator brg the baud rate generator operates from the oscillator or external x1/cclk clock input and is capable of generating 22 commonly used data communications baud rates ranging from 50 to 230.4k baud. these common rates may be doubled (up to 460.8 and 500k baud) when faster clocks are used on the x1/x2 clock inputs. (see receiver and transmitter clock select register descriptions.) all of these are available simultaneously for use by any receiver or transmitter. the clock outputs from the brg are at 16x the actual baud rate. brg counters (used for random baud rate generation) the two brg timers are programmable 16 bit dividers that are used for generating miscellaneous clocks. these clocks may be used by any or all of the receivers and transmitters in the octart or output on the general purpose output pin gpo. each timer unit has eight different clock sources available to it as described in the brg timer control register. (brgtcr). note that the timer run and stop controls are also contained in this register. the brg timers generate a symmetrical square wave whose half period is equal in time to the division of the selected brg timer clock source by the number loaded to the brg timer reload registers ( brgtru and brgtrl). thus, the output frequency will be the clock source frequency divided by twice the value loaded to the brgtru and brgtrl registers. this is the result of counting down once for the high portion of the output wave and once for the low portion. whenever the these timers are selected via the receiver or transmitter clock select register their output will be configured as a 16x clock for the respective receiver or transmitter. therefore one needs to program the timers to generate a clock 16 times faster than the data rate. the formula for calculating 'n', the number loaded to the brgtru and brgtrl registers, is shown below. n  brg timer input frequency 2  16  desired baud rate  1 note: 'n' may assume values of 0 and 1. in previous philips data communications controllers these values were not allowed. the brg timer input frequency is controlled by the brg timer control register (brgtcr) the frequency generated from the above formula will be at a rate 16 times faster than the desired baud rate. the transmitter and receiver state machines include divide by 16 circuits which provide the final frequency and provide various timing edges used in the qualifying the serial data bit stream. often this division will result in a noninteger value; 26.3 for example. one may only program integer numbers to a digital divider. there for 26 would be chosen. if 26.7 was the result of the division then 27 would be chosen. this gives a baud rate error of 0.3/26.3 or 0.3/26.7. which yields a percentage error of 1.14% or 1.12% respectively; well within the ability of the asynchronous mode of operation. one should be cautious about the assumed benign effects of small errors since the other receiver or transmitter with which one is communicating may also have a small error in the precise baud rate. in a ocleano communications environment using one start bit, eight data bits and one stop bit the total difference allowed between the transmitter and receiver frequency is approximately 4.6%. less than eight data bits will increase this percentage. channel blocks there are eight channel blocks, each containing an i/o port control, a data format control, and a single full duplex uart channel consisting of a receiver and a transmitter with their associated 16 byte fifos. each block has its own status register, interrupt status and interrupt mask registers and their interface to the interrupt arbitration system. a highly programmable character recognition system is also included in each block. this system is used for the xon/xoff flow control and the multi-drop (o9 bit modeo) address character recognition. it may also be used for general purpose character recognition. four i/o pins are provided for each channel. these pins are configured individually to be inputs or outputs. as inputs they may be used to bring external data to the bus, as clocks for internal functions or external control signals. each i/o pin has a ochange of stateo detector. the change detectors are used to signal a change in the signal level at the pin (either 0 to 1 or 1 to 0). the level change on these pins must be stable for 25 to 50 us (two edges of the 38.4 khz baud rate clock) before the detectors will signal a valid change. these are typically used for interface signals from modems to the octart and from there to the host. see the description of the ouart channelo under detailed descriptions below. character recognition character recognition is specific to each of the eight uarts. three programmable characters are provided for the character recognition for each channel. the three are general purpose in nature and may be set to only cause an interrupt or to initiate some rather complex operations specific to omulti-dropo address recognition or inband xon/xoff flow control. character recognition is accomplished via cam memory. the content addressable memory continually examines the incoming data stream. upon the recognition of a control character appropriate bits are set in the xon/xoff interrupt status register (xisr) and interrupt status register (isr). the setting of these bit(s) will initiate any of the automatic sequences or and/or an interrupt that may have enabled via the mr0 register. the characters of the recognition system are not controlled by the software or hardware reset. they do not have a pre-defined areset
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 9 valueo. they may, however, be loaded by a agang whiteo or agang loado command as described in the axon xoff characterso paragraph. note: character recognition is further described in the minor modes of operation. interrupt control the interrupt system determines when an interrupt should be asserted thorough an arbitration (or bidding) system. this arbitration is exercised over the several systems within the octart that may generate an interrupt. these will be referred to as ointerrupt sourceso. there are 64 in all. in general the arbitration is based on the fill level of the receiver fifo or the empty level of the transmitter fifo. the fifo levels are encoded into a four bit number which is concatenated to the channel number and source identification code. all of this is compared (via the bidding or arbitration process) to a user defined othresholdo. when ever a source exceeds the numerical value of the threshold the interrupt will be generated. at the time of interrupt acknowledge (iackn) the source which has the highest bid (not necessarily the source that caused the interrupt to be generated) will be captured in a ocurrent interrupt registero (cir). this register will contain the complete definition of the interrupting source: channel, type of interrupt (receiver, transmitter, change of state, etc.), and fifo fill level. the value of the bits in the cir are used to drive the interrupt vector and global registers such that controlling processor may be steered directly to the proper service routine. a single read operation to the cir provides all the information needed to qualify and quantify the most common interrupt sources. the interrupt sources for each channel are listed below. ? transmit fifo empty level for each channel ? receive fifo fill level for each channel ? change in break received status for each channel ? receiver with error for each channel ? change of state on channel input pins ? receiver watch-dog timeout event ? xon/xoff character recognition ? address character recognition associated with the interrupt system are the interrupt mask register (imr) and the interrupt status register (isr) resident in each uart. programming of the imr selects which of the above sources may enter the arbitration process. only the bidders in the isr whose associated bit in the imr is set to one (1) will be permitted to enter the arbitration process. the isr can be read by the host cpu to determine all currently active interrupting conditions. for convenience the bits of the isr may be masked by the bits of the imr. whether the isr is read unmasked or masked is controlled by the setting of bit 6 in mr1. global registers the aglobal registerso, 19 in all, are driven by the interrupt system. these are not real hardware devices. they are defined by the content of the cir (current interrupt register) as a result of an interrupt arbitration. in other words they are indirect registers contained in the current interrupt register (cir) which the cir uses to point to the source and context of the octart sub circuit presently causing an interrupt. the principle purpose of these oregisterso is improving the efficiency of the interrupt service. the global registers and the cir update procedure are further described in the interrupt arbitration system i/o ports each of the eight uart blocks contains an i/o section of four ports. these ports function as a general purpose post section which services the particular uart they are associated with. external clocks are input and internal clocks are output through these ports. each of the four pins has a change of state detector which will signal a change (0 to 1 or 1 to 0) at the pin. the change of state detectors are individually enabled and may be set to cause and interrupt. these pins will normally be used for flow control handshaking and the interface to a modem. their control is further described in i/o ports section and the i/opcr register. detailed descriptions receiver and transmitter the octal uart has eight full-duplex asynchronous receiver/transmitters. the operating frequency for the receiver and transmitter can be selected independently from the baud rate generator, the counter , or from an external input. registers that are central to basic full-duplex operation are the mode registers (mr0, mr1 and mr2), the clock select registers (rxcsr and txcsr), the command register (cr), the status register (sr), the transmit holding register (txfifo), and the receive holding register (rxfifo). transmitter the transmitter accepts parallel data from the cpu and converts it to a serial bit stream on the txd output pin. it automatically sends a start bit followed by the programmed number of data bits, an optional parity bit, and the programmed number of stop bits. the least significant bit is sent first. each character is always oframedo by a single start bit and a stop bit that is 9/16 bit time or longer. if a new character is not available in the txfifo, the txd output remains high, the omarkingo position, and the txemt bit in the sr is set to 1. transmitter status bits the sr (status register, one per uart) contains two bits that show the condition of the transmitter fifo. these bits are txrdy and txemt. txrdy means the txfifo has space available for one or more bytes; txemt means the txfifo is completely empty and the last stop bit has been completed. txemt can not be active without txrdy also being active. these two bits will go active upon initial enabling of the transmitter. they will extinguish on the disable or reset of the transmitter. transmission resumes and the txemt bit is cleared when the cpu loads at least one new character into the txfifo. the txrdy will not extinguish until the txfifo is completely full. the txrdy bit will always be active when the transmitter is enabled and there is at lease one open position in the txfifo. the transmitter is disabled by reset or by a bit in the command register (cr). the transmitter must be explicitly enabled via the cr before transmission can begin. note that characters cannot be loaded into the txfifo while the transmitter is disabled, hence it is necessary to enable the transmitter and then load the txfifo. it is not possible to load the txfifo and then enable the transmission. note the difference between transmitter disable and transmitter reset. the transmitter may by reset by a hardware or software. the
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 10 software reset is issued through command 3x of the command register (cr). the disable is done by setting the transmitter disable bit also in the command register. if the transmitter is disabled, it continues operating until the character currently being transmitted, if any, is completely sent, including the stop bit. when reset the transmitter stops immediately, drives the transmitter serial data out put to a high level and discards any data in the txfifo. transmission of abreakos transmission of a break character is often needed as a synchronizing condition in a data stream. the abreako is defined as a start bit followed by all zero data bits by a zero parity bit (if parity is enabled) and a zero in the stop bit position. the forgoing is the minimum time to define a break. the transmitter can be forced to send a break (continuous low condition) by issuing a start break command via the cr. this command does not have any timing associated with it. once issued the txd output will be driven low (the spacing condition) and remain there until the host issues a command to astop breako via the cr or the transmitter is issued a software or hardware reset. in normal operation the break is usually much longer than one character time. 1x and 16x modes, transmitter the transmitter clocking has two modes: 16x and 1x. data is always sent at the 1x rate. however the logic of the transmitter may be operated with a clock that is 16 times faster than the data rate or at the same rate as the data i.e. 1x. all clocks selected internally for the transmitter (and the receiver) will be 16x clocks. only when an external clock is selected may the transmitter logic and state machine operate in the 1x mode. the 1x or 16x clocking makes little difference in transmitter operation. (this is not true in the receiver) in the 16x clock mode the transmitter will recognize a byte in the txfifo within 1/16 to 2/16 bit time and thus begin transmission of the start bit; in the 1x mode this delay may be up to 2 bit times. transmitter fifo the transmitter buffer memory is a 16 byte by 8 bit ripple fifo. the host writes characters to this buffer. this buffer accepts data only when the transmitter is enabled. the transmitter state machine reads them out in the order they were received and presents them to the transmitter shift register for serialization. the transmitter adds the required start, parity and stop bits as required the mr2 register programming. the start bit (always one bit time in length) is sent first followed by the least significant bit (lsb) to the most significant bit (msb) of the character, the parity bit (if used) and the required stop bit(s). logic associated with the fifo encodes the number of empty positions available in a four bit value. this value is concatenated with the channel number and type interrupt type identifier and presented to the interrupt arbitration system. the encoding of the opositions emptyo value is always 1 less than the number of available positions. thus, an empty txfifo will bid with the value or 15; when full it will not bid at all; one position empty bids with the value 0. a full fifo will not bid since a character written to it will be lost normally a txfifo will present a bid to the arbitration system when ever it has one or more empty positions. the mr0[5:4] allow the user to modify this characteristic so that bidding will not start until one of four levels (empty, 3/4 empty, 1/2 empty, not full) have been reached. as will be shown later this feature may be used to make slight improvements in the interrupt service efficiency. a similar system exists in the receiver. receiver the receiver accepts serial data on the rxd pin, converts the serial input to parallel format, checks for start bit, stop bit, parity bit (if any),framing error or break condition, and presents the assembled character and its status condition to the cpu via the rxfifo. three status bits are fifoed with each character received. the rxfifo is really 11 bits wide; eight data and 3 status. unused fifo bits for character lengths less than 8 bits are set to zero. it is important to note that receiver logic considers the entire message to be contained within the start bit to the stop bit. it is not aware that a message may contain many characters. the receiver returns to its idle mode at the end of each stop bit! as described below it immediately begins to search for another start bit which is normally, of course, immediately forth coming. 1x and 16x mode, receiver the receiver operates in one of two modes; 1x and 16x. of the two, the 16x is more robust and the preferred mode. although the 1x mode may allow a faster data rate is does not provide for the alignment of the receiver 1x data clock to that of the transmitter. this strongly implies that the 1x clock of the remote transmitter is available to the receiver; the two devices are physically close to each other. the 16x mode operates the receiver logic at a rate 16 times faster than the 1x data rate. this allows for validation of the start bit, validation of level changes at the receiver serial data input (rxd), and a stop bit length as short as 9/16 bit time. of most importance in the 16x mode is the ability of the receiver logic to align the phase of the receiver 1x data clock to that of the transmitter with an accuracy of less than 1/16 bit time. when the receiver is enabled ( via the cr register) it begins looking for a high to low (mark to space) transition on the rxd input pin. if a transition is detected, an internal counter running at 16 times the data rate is reset to zero. if the rxd remains low and is still low when the counter reaches a count of 7 the receiver will consider this a valid start bit and begin assembling the character. if the rxd input returns to a high state the receiver will reject the previous high to low (mark to space) transition on the rxd input pin. this action is the ovalidationo of the start bit and also establishes the phase of the receiver 1x clock to that of the transmitter the counter operating at 16x the data rate is the generator for the 1x data rate clock. with the phase of the receiver 1x clock aligned to the falling of the start bit (and thus aligned to the transmitter clock) and with a valid start bit having been verified the receiver will continue receiving bits by sampling the rxd input on the rising edge of the 1x clock that is being generated by the above mentioned counter running 16 times the data rate. since the falling edge of the 1x clock was aligned to falling edge of the start bit then the rising of the clock will be in the ocentero of the bit cell. this action will continue until a full character has been assembled. parity , framing, and stop bit , and break status is then assembled and the character and its status bits are loaded to the rxfifo at this point the receiver has finished its task for that character and will immediately begin the search for another start bit. receiver status bits there are five (5) status bits that are evaluated with each byte (or character) received: received break, framing error, parity error, overrun error, and change of break. the first three are appended to each byte and stored in the rxfifo. the last two are not necessarily related to the a byte being received or a byte that is in the rxfifo. they are however developed by the receiver state machine
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 11 . the oreceived breako will always be associated with a zero byte in the rxfifo. it means that zero character was a break character and not a zero data byte. the reception of a break condition will always set the ochange of breako (see below) status bit in the interrupt status register(isr). a framing error occurs when a non zero character was seen and that character has a zero in the stop bit position. the parity error indicates that the receiver generated parity was not the same as that sent by the transmitter. the overrun error occurs when the rxfifo is full, the receiver shift register is full and another start bit is detected. at this moment the receiver has 17 valid characters and the start bit of the 18th has been seen. at this point the host has approximately 7/16 bit time to read a byte from the rxfifo or the overrun condition will be set and the 18th character will overrun the 17th and the 19th the 18th and so on until an open position in the rxfifo is seen. the meaning of the overrun is that data has been lost. data in the rxfifo remains valid. the receiver will begin placing characters in the rxfifo as soon as a position becomes vacant. note: precaution must be taken when reading an overrun fifo. there will be 16 valid characters. data will begin loading as soon as the first character is read. the 17 th. character will have been received as valid but it will not be known how many characters were lost between the two characters of the 16 th. and 17 th. reads of the rxfifo the ochange of breako means that either a break has been detected or that the break condition has been cleared. this bit is available in the isr. the beginning of a break will be signaled by the break change bit being set in the isr and the received break bit being set in the sr. at the termination of the break condition only the change of break in the isr will be set. after the break condition is detected the termination of the break will only be recognized when the rxd input has returned to the high state for two successive edges of the 1x clock; 1/2 to 1 bit time. the receiver is disabled by reset or via cr commands. a disabled receiver will not interrupt the host cpu under any circumstance in the normal mode of operation. if the receiver is in the multi-drop or special mode, it will be partially enabled and thus may cause an interrupt. refer to section on wakeup and minor modes and the register description for mr1 for more information. receiver fifo the receiver buffer memory is a 16 byte ripple fifo with three status bits appended to each data byte. (the fifo is then 16 11 bit owordso). the receiver state machine gathers the bits from the receiver shift register and the status bits from the receiver logic and writes the assembled byte and status bits to the rxfifo. logic associated with the fifo encodes the number of filled positions for presentation to the interrupt arbitration system. the encoding is always 1 less than the number of filled positions. thus, a full rxfifo will bid with the value or 15; when empty it will not bit at all; one position occupied bids with the value 0. an empty fifo will not bid since no character is available. normally rxfifo will present a bid to the arbitration system when ever it has one or more filled positions. the mr2[3:2 bits allow the user to modify this characteristic so that bidding will not start until one of four levels (one or more filled, 1/2 filled, 3/4 filled, full) have been reached. as will be shown later this feature may be used to make slight improvements in the interrupt service efficiency. a similar system exists in the transmitter. rxfifo status: status reporting modes the description below applies to the upper three bits in the ostatus registero these three bits are not oin the status registero; they are part of the rxfifo. the three status bits at the top of the rxfifo are presented as the upper three bits of the status register included in each uart. the error status of a character , as reported by a read of the sr (status register upper three bits) can be provided in two ways, as programmed by the error mode control bit in the mode register: ocharacter mode o or the oblock modeo. the block mode may be further modified (via a cr command) to set the status bits as the characters enter the fifo or as they are read from the fifo. in the 'character' mode, status is provided on a character by character basis as the characters are read from the rxfifo: the ostatuso applies only to the character at the top of the rxfifo the next character to be read in the 'block' mode, the status provided in the sr for these three bits is the logical or of the status for all characters coming to the top of the rxfifo, since the last reset error command was issued. in this mode each of the status bits stored in the rxfifo are passed through a latch as they are sequentially read. if any of the characters has an error bit set then that latch will set and remain set until reset with an oreset erroro command from the command register or a receiver reset. the purpose of this mode is indicating an error in the data block as opposed to an error in a character the latch used in the block mode to indicate oproblem datao is usually set as the characters are read out of the rxfifo. via a command in the cr the latch may be configured to set the latch as the characters are pushed (loaded to) the rxfifo. this gives the advantage of indicating oproblem datao 16 characters earlier . in either mode, reading the sr does not affect the rxfifo. the rxfifo is 'popped' only when the rxfifo is read. therefore, the sr should be read prior to reading the corresponding data character. if the rxfifo is full when a new character is received, that character is held in the receive shift register until a rxfifo position is available. at this time there are 17 valid characters in the rxfifo. if an additional character is received while this state exists, the contents of the rxfifo are not affected: the character previously in the shift register is lost and the overrun error status bit, sr[4], will be set upon receipt of the start bit of the new (overrunning) character. i/o ports each of the eight uarts includes four i/o ports equipped with ochange of stateo detectors. the pins are individually programmable for an input only function or one of three output functions. these functions are controlled by the oi/o port configuration register (i/opcr)) they will normally be used for the rtsnctsn, dtr hardware signals, rxd or txd input or output clocks or switch inputs as well as data out put from the i/opior register. it is important to note that the input circuits are always active. that is the signal on a port, whether it is derived from an internal or external source is always available to the internal circuits associated with an input on that port. the ochange of stateo (cos) detectors are sensitive to both a 1 to 0 or a 0 to 1 transition. the detectors are controlled by the internal 38.4 khz baud rate and will signal a change when a transition has been stable for two rising edges of this clock. thus a level on the i/o ports must be stable for 26 s to 52 s. defining a port as an output will disable the cos detector at that port. the condition of
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 12 the four i/o pins and their cos detectors is available at any time in the ipr (input port register) the control of data and cos enable for these ports is through the i/opior register. this is a read/write register and gives individual control to the enabling of the change of state detectors and also to the level driven by i/o pins when programmed to drive the logic level written to the four lower bits of the i/opior. a read of this register will indicate the data on the pin at the time of the read and the state of the enabled cos detectors. general purpose pins in addition to the i/o ports for each uart four other ports are provided which service the entire chip. two are dedicated as inputs and one as an output. the g in 1 and g in 0 are the input pins; g out 0 the output. these ports are multiplexed to nearly every functional unit in the chip. see the registers which describe the multitude of connections available for these pins. the g out 0 pin is highly multiplexed output and is controlled by four (4) registers: gposr, gpor, gpoc and gpod. the g in 0 and g in 1 pins are available to the receivers and transmitters, brg counters and the g out 0 pin. global registers the oglobal registerso, 19 in all, are driven by the interrupt system. these are not real hardware devices. they are defined by the content of the cir (current interrupt register) as a result of an interrupt arbitration. in other words they are indirect registers pointed to by the content of the cir. the list of global register follows: gibcr the byte count of the interrupting fifo gicr channel number of the interrupting channel gitr type identification of interrupting channel grxfifo pointer to the interrupting receiver fifo gtxfifo pointer to the interrupting transmitter fifo a read of the grxfifo will give the content of the rxfifo that presently has the highest bid value. the purpose of this system is to enhance the efficiency of the interrupt system. the global registers and the cir update procedure are further described in the interrupt arbitration system character recognition the character recognition circuits are basically designed to provide general purpose character recognition. additional control logic has been added to allow for xon/xoff flow control and for recognition of the address character in the multi-drop or owakeupo mode. this logic also allows for the generation of an interrupts in either the general purpose recognition mode or the specific conditions mentioned above. xon xoff characters the programming of these characters is usually done individually. however a method has been provided to write to all of registers in one operation. there are ogang loado and a ogang writeo commands provided in the channel a command register. when these commands are executed all registers are programmed with the same characters. the owriteo command loads a used defined character; the 'loado command loads the standard xon/xoff characters. xon is x'11; xoff x'13'. any enabling of the xon/xoff functions will use the contents of the xon and xoff character registers as the basis on which recognition is predicated. multi-drop or wake up or 9 bit mode this mode is used to address a particular uart among a group connected to the same serial data source. normally it is accomplished by redefining the meaning of the parity bit such that it indicates a character as address or data. while this method is fully supported in the sc28l198 it also supports recognition of the character itself. upon recognition of its address the receiver will be enabled and data pushed onto the rxfifo. further the address recognition has the ability, if so programmed, to disable (not reset) the receiver when an address is seen that is not recognized as its own. the particular features of oauto wake and auto dozeo are described in the detail descriptions below. note: care should be taken in the programming of the character recognition registers. programming x'00, for example, may result in a break condition being recognized as a control character. this will be further complicated when binary data is being processed. character stripping the mr0 register provides for stripping the characters used for character recognition. recall that the character recognition may be conditioned to control several aspects of the communication. however this system is first a character recognition system. the status of the various states of this system are reported in the xisr and isr registers. the character stripping of this system allows for the removal of the specified control characters from the data stream: two for the xon /xoff and one for the wake up. via control in the mr0 register these characters may be discarded (stripped) from the data stream when the recognition system aseeso them or they may be sent on the rxfifo. whether they are stripped or not the recognition will process them according to the action requested: flow control, wake up, interrupt generation, etc. care should be exercised in programming the stripping option if noisy environments are encountered. if a normal character was corrupted to an xoff character turned off the transmitter and it was then stripped, then the stripping action could make it difficult to determine the cause of transmitter stopping. interrupt arbitration and irqn generation interrupt arbitration is the process used to determine that an interrupt request should be presented to the host. the arbitration is carried out between the ointerrupt thresholdo and the osourceso whose interrupt bidding is enabled by the imr. the interrupt threshold is part of the icr (interrupt control register) and is a value programmed by the user. the osourceso present a value to the interrupt arbiter. that value is derived from four fields: the channel number, type of interrupt source, fifo fill level, and programmable value. . only when one or more of these values exceeds the threshold value in the interrupt control register will the interrupt request (irqn) be asserted. following assertion of the irqn the host will either assert iackn(interrupt acknowledge) or will use the command to oupdate the ciro. at the time either action is taken the cir will capture the value of the source that is prevailing in the arbitration process. (call this value the winning bid) the value in the cir is the central quantity that results from the arbitration. it contains the identity of the interrupting channel, the type of interrupt in that channel (rxd, txd, cos etc.) the fill levels of the rxd or txd fifos and , in the case of an rxd interrupt an indicator of error data or good data. it also drives the global registers associated with the interrupt. most importantly it drives the modification of the interrupt vector. the arbitration process is driven by the sclk. it scans the 10 bits of the arbitration bus at the sclk rate developing a value for the cir every 22 sclk cycles. new arbitration values presented to the arbitration block during an arbitration cycle will be evaluated in the next arbitration cycle.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 13 for sources other than receiver and transmitters the user may set the high order bits of an interrupt source's bid value, thus tailoring the relative priority of the interrupt sources. the priority of the receivers and transmitters is controlled by the fill level of their respective fifos. the more filled spaces in the rxfifo the higher the bid value; the more empty spaces in the txfifo the higher its priority. channels whose programmable high order bits are set will be given interrupt priority higher than those with zeros in their high order bits , thus allowing increased flexibility. the transmitter and receiver bid values contain the character counts of the associated fifos as high order bits in the bid value. thus, as a receiver's rxfifo fills, it bids with a progressively higher priority for interrupt service. similarly, as empty space in a transmitter's txfifo increases, its interrupt arbitration priority increases. iackn cycle, update cir when the host cpu responds to the interrupt, it will usually assert the iackn signal low. this will cause the octart to generate an iackn cycle in which the condition of the interrupting device is determined. when iackn asserts, the last valid interrupt number is captured in the cir. the value captured presents most of the important details of the highest priority interrupt at the moment the iackn (or the oupdate ciro command) was asserted. the octal uart will respond to the iackn cycle with an interrupt vector. the interrupt vector may be a fixed value, the content of the interrupt vector register, or ,when ointerrupt vector modification is enabled via icr, it may contain codes for the interrupt type and/or interrupting channel. this allows the interrupt vector to steer the interrupt service directly to the proper service routine. the interrupt value captured in the cir remains until another iackn cycle occurs or until an oupdate ciro command is given to the octart. the interrupting channel and interrupt type fields of the cir set the current ointerrupt contexto of the octart. the channel component of the interrupt context allows the use of global interrupt information registers that appear at fixed positions in the register address map. for example, a read of the global rxfifo will read the channel b rxfifo if the cir interrupt context is channel b receiver. at another time read of the grxfifo may read the channel d rxfifo (cir holds a channel d receiver interrupt) and so on. global registers exist to facilitate qualifying the interrupt parameters and for writing to and reading from fifos without explicitly addressing them. the cir will load with x'00 if iackn or update cir is asserted when the arbitration circuit is not asserting and interrupt. in this condition there is no arbitration value that exceeds the threshold value. polling many users prefer polled to interrupt driven service where there are a large number of fast data channels and/or the host cpu's other interrupt overhead is low. the octal uart is functional in this environment. the most efficient method of polling is the use of the oupdate ciro command (with the interrupt threshold set to zero) followed by a read of the cir. this dummy write cycle will perform the same cir capture function that an iackn falling edge would accomplish in an interrupt driven system. a subsequent read of the cir, at the same address, will give information about an interrupt, if any. if the cir contains 0s, no interrupt is awaiting service. if the value is nonzero, the fields of the cir may be decoded for type, channel and character count information. optionally, the global interrupt registers may be read for particular information about the interrupt status or use of the global rxd and txd registers for data transfer as appropriate. the interrupt context will remain in the cir until another update cir command or an iackn cycle is initiated by the host cpu occurs. the cir loads with x'00 if update cir is asserted when the arbitration circuit has not detected arbitration value that exceeds the threshold value. traditional methods of polling status registers may also be used. they of course are less efficient but give the most variable and quickest method of changing the order in which interrupt sources are evaluated and interrogated. enabling and activating interrupt sources an interrupt source becomes enabled when its interrupt capability is set by writing to the interrupt mask register, imr. an interrupt source can never generate an irqn or have its obido or interrupt number appear in the cir unless the source has been enabled by the appropriate bit in an imr. an interrupt source is active if it is presenting its bid to the interrupt arbiter for evaluation. most sources have simple activation requirements. the watch-dog timer, break received, xon/xoff or address recognition and change of state interrupts become active when the associated events occur and the arbitration value generated thereby exceeds the threshold value programmed in the icr (interrupt control register). the transmitter and receiver functions have additional controls to modify the condition upon which the initiation of interrupt obiddingo begins: the txint and rxint fields of the mr0 and mr2 registers. these fields can be used to start bidding or arbitration when the rxfifo is not empty, 50% full, 75% full or 100% full. for the transmitter it is not full, 50% empty, 75% empty and empty. example: to increase the probability of transferring the contents of a nearly full rxfifo, do not allow it to start bidding until 50% or 75% full. this will prevent its relatively high priority from winning the arbitration process at low fill levels. a high threshold level could accomplish the same thing, but may also mask out low priority interrupt sources that must be serviced. note that for fast channels and/or long interrupt latency times using this feature should be used with caution since it reduces the time the host cpu has to respond to the interrupt request before receiver overrun occurs. setting interrupt priorities the bid or interrupt number presented to the interrupt arbiter is composed of character counts, channel codes, fixed and programmable bit fields. the interrupt values are generated for various interrupt sources as shown in the table below: the value represented by the bits 9 to 3 in the table below are compared against the value represented by the athreshold. the athresholdo ,bits 6 to 0 of the icr (interrupt control register), is aligned such that bit 6 of the threshold is compared to bit 9 of the interrupt value generated by any of the sources. when ever the value of the interrupt source is greater than the threshold the interrupt will be generated. the channel number arbitrates only against other channels. the threshold is not used for the channel arbitration. this results in channel d having the highest arbitration number. the decreasing order is h to a. if all other parts of an arbitration are equal then the channel number will determine which channel will dominate in the arbitration process .
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 14 table 1. interrupt arbitration priority type b9 b8 b7 b6 b5 b4 b3 bits 2:0 receiver w/o error rxfifo byte count 1 0 0 1 channel no receiver w/ error rxfifo byte count 1 1 0 1 channel no transmitter 0 txfifo byte count 1 0 0 channel no change of break programmed field 0 0 1 0 channel no change of state programmed field 0 1 1 0 channel no xon/xoff programmed field 0 1 1 1 channel no address recognition programmed field 0 0 1 1 channel no receiver watch-dog rxfifo byte count 1 as rxfifo above channel no threshold bits 6:0 of interrupt control register 000 note several characteristics of the above table in bits 6:3. these bits contain the identification of the bidding source as indicated below: x001 receiver without error x101 receiver with error xx00 transmitter 0010 change of break 0110 change of state on i/o ports 0111 xon/xoff event 0011 address recognition the codes form bits 6:3 drive part of the interrupt vector modification and the global interrupt type register. the codes are unique to each source type and identify them completely. the channel numbering progresses from oao to odo as the binary numbers 000 to 011 and identify the interrupting channel uniquely. as the channels arbitrate odo will have the highest bidding value and oao the lowest note that the transmitter byte count is offset from that of the receiver by one bit. this is to give the receiver more authority in the arbitration since and overrun receiver corrupts the message but an underrun transmitter is not harmful. this puts some constraints on how the threshold value is selected. if a threshold is chosen that has its msb set to one then a transmitter can never generate an interrupt! of course the counter point to this is the desire to set the interrupt threshold high so interrupts occur only when a maximum or near maximum number of characters may be transferred. to give some control over this dilemma control bits have been provided in the mr0 and mr2 registers of each channel to individually control when a receiver or transmitter may interrupt. the use of these bits will prevent a receiver or a transmitter from entering the arbitration process even though its fifo fill level is above that indicated by the threshold value set. the bits in the mr0 and mr2 register are named txint (mr0[5:4]) and rxint (mr2[3:2]) the watch-dog is included in the table above to show that it affects the arbitration. it does not have an identity of its own. a barking watch-dog will prevent any other source type from entering the arbitration process except enabled receivers. the threshold is effectively set to zero when any watch-dog times out. the receivers arbitrate among them selves and the one with the highest fill level will win the process. note that the receiver wining the bid may not be the one that caused the watch-dog to bark. the fields labeled oprogrammed fieldo are the contents of the bidding control registers, bcrs, for these sources. setting these bits to high values can elevate the interrupt importance of the sources they represent to values almost as high as a full receiver. for example a cos event may be very important when it represents the dsr (data set ready) signal from the modem. in this case its arbitration value should be high. once the dsr is recognized then its arbitration value could be reduced or turned off. there is a single arbiter interrupt number that is not associated with any of the uart channels. it is the othreshold valueo and is comprised of 7 bits from the interrupt control register, icr, and three zeros in the channel field. it is only when one or more of the enabled interrupt sources generates a arbitration value larger than the threshold value that the irqn will be asserted. when the threshold bidding value is larger than any other bidding value then the irqn will be withdrawn. in this condition the cir will be loaded with if the irqn or oupdate ciro command is asserted. because the channels are numbered from 0 to 3 ( a to d) channel 3 will win the bid when all other parts of the bid are equal. note: based on this coding for the receiver and transmitter, a transmitter would not win a bid in the situation where the count field = 0 unless the threshold value is equal or less than 0000011. a single empty slot is left in the txfifo or a single filled slot in the rxfifo will bid with a value of zero. modes of operation major modes four major modes of operation (normal, auto echo, local loop back and remote loop back) are provided and are controlled by mr2[7:6]. three of these may be considered diagnostic. see the mr2 register description. the normal mode is the usual mode for data i/o operation. most reception and transmission will use the normal mode. in the auto echo mode, the transmitter automatically re-transmits any character captured by the channel's receiver. the receiver 1x clock is used for the transmitter. this mode returns the received data back to the sending station one bit time delayed from its departure. receiver to host communication is normal. host to transmitter communication has no meaning. in the local loop back mode (used for diagnostic purposes) the transmitter is internally connected to the receiver input. the transmitter 1x clock used for the receiver. the rxd input pin is ignored and the transmitter txd output pin is held high. this configuration allows the transmitter to send data to the receiver without any external parameters to affect the transmission of data. all status bits, interrupt conditions and processor interface operate normally. it is recommended that this mode be used when initially verifying processor to uart interface. the communication between the transmitter and receiver is entirely within the uart it is essentially otalking to itselfo.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 15 the remote loop back mode (also used for diagnostic purposes) is similar to auto echo except that the characters are not sent to the local cpu, nor is the receiver status updated. the received data is sent directly to the transmitter where it is sent out on the txd output. the received data is not sent to the receive fifo and hence the host will not normally be participating in any diagnostics. minor modes the minor modes provide additional features within the major modes. in general the minor modes provide a reduction in the control burden and a less stringent interrupt latency time for the host processor. these modes could be invoked in all of the major modes.. however it may not be reasonable in many situations. watch-dog timer timeout mode each receiver in the octal uart is equipped with a watch-dog timer that is enabled by the owatch-dog timer enable register (wter). the watch-dog obarkso (times out) if 64 counts of the receiver clock (64 bit times) elapse with no rxfifo activity. rxfifo events are a read of the rxfifo or grxfifo, or the push of a received character into the rxfifo. the timer resets when the (g)rxfifo is read or if another character is pushed into the rxfifo. the receiver watch-dog timer is included to allow detection of the very last character(s) of a received message that may be waiting in the rxfifo, but are too few in number to successfully initiate an interrupt. the watch-dog timer is enabled for counting if the channel's bit in the watch dog timer control register (wdtcr) is set. note: a read of the grxfifo will reset the watch-dog timer of only the channel specified in the current interrupt context. other watch-dogs are unaffected. the watch-dog timer may generate an input to the interrupt arbiter if imr[6] is set. the status of the watch-dog timer can be seen as bit 6 of the interrupt status register, isr[6]. when a watch-dog timer that is programmed to generate an interrupt times out it enters the arbitration process. it will then only allow receivers to enter the enter the arbitration. all other sources are bidding sources are disabled. the receivers arbitrate only amongst themselves.. the receiver only interrupt mode of the interrupt arbiter continues until the last watch-dog timer event has been serviced. while in the receiver only interrupt mode, the control of the interrupt threshold level is also disabled. the receivers arbitrate only between themselves. the threshold value is ignored. the receiver with the most fifo positions filled will win the bid. hence the user need not reduce the bidding threshold level in the icr to see the interrupt from a nearly empty rxfifo that may have caused the watch-dog timeout. note: when any watch-dog times our only the receivers arbitrate. there is no increase in the probability of receiver being serviced causing the overrun of another receiver since they will still have priority based upon received character count. the interrupt will be cleared automatically upon the push of the next character received or when the rxfifo or grxfifo is read. the icr is unaffected by the watch-dog timeout interrupt and normal interrupt threshold level sensing resumes after the last watch-dog timer event has been processed. if other interrupt sources are active, the irqn pin may remain low. wake up mode the sc28l198 provides two modes of this common asynchronous aparty lineo protocol: the new automatic mode with 3 sub modes and the default host operated mode. the automatic mode has several sub modes (see below). in the full automatic the internal state machine devoted to this function will handle all operations associated with address recognition, data handling, receiver enables and disables. in both modes the meaning of the parity bit is changed. it is often referred to as the a/d bit or the address/data bit. it is used to indicate whether the byte presently in the receiver shift register is an oaddresso byte or a odatao byte. o1o usually means address; o0o data. its purpose is to allow several receivers connected to the same data source to be individually addressed. of course addressing could be by group also. normally the omastero would send an address byte to all receivers olisteningo the receiver would then recognize its address and enable itself receiving the following data stream. upon receipt of an address not its own it would then disable itself. as descried below appropriate status bits are available to describe the operation. enabling the wake up mode this mode is selected by programming bits mr1[4:3] to '11'. the sub modes are controlled by bits 6, 1, 0 in the mr0 register. bit 6 controls the loading of the address byte to the rxfifo and mr0[1:0] determines the sub mode as shown in the following table. mr0[1:0] = 00 normal wake up mode (default). host controls operation via interrupts and commands written to the command register (cr). mr0[1:0] = 01 auto wake. enable receiver on address recognition for this station. upon recognition of its assigned address, in the auto wake mode, the local receiver will be enabled and normal receiver communications with the host will be established. mr0[1:0] = 10 auto doze. disable receiver on address recognition, not for this station. upon recognition of an address character that is not its own, in the auto doze mode, the receiver will be disabled and the address just received either discarded or pushed to the rxfifo depending on the programming of mr0[6]. mr0[1:0] = 11 auto wake and doze. both modes above. the programming of mr0[1:0] to 11 will enable both the auto wake and auto doze features. the enabling of the wakeup mode executes a partial enabling of the receiver state machine. even though the receiver has been reset the wake up mode will over ride the disable and reset condition. normal wake up (the default configuration) in the default configuration for this mode of operation, a 'master' station transmits an address character followed by data characters for the addressed 'slave' station. the slave stations, whose receivers are normally disabled (not reset), examine the received data stream and interrupts the cpu (by setting rxrdy) only upon receipt of an address character. the cpu (host) compares the received address to its station address and enables the receiver if it wishes to receive the subsequent data characters. upon receipt of another address character, the cpu may disable the receiver to initiate the process again . a transmitted character consists of a start bit, the programmed number of data bits, an address/data (a/d) bit, and the programmed number of stop bits. the polarity of the transmitted a/d bit is selected by the cpu by programming bit mr1[2]. mr1[2] = 0 transmits a zero in the a/d bit position which identifies the corresponding data bits as data . mr1[2] = 1 transmits a one in the a/d bit position which identifies the corresponding data bits as an address . the cpu should program the mode register prior to loading the corresponding data bytes into the txfifo.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 16 while in this mode, the receiver continuously looks at the received data stream, whether it is enabled or disabled. if disabled, it sets the rxrdy status bit and loads the character into the rxfifo if the received a/d bit is a one, but discards the received character if the received a/d bit is a zero. if the receiver is enabled, all received characters are transferred to the cpu via the rxfifo. in either case, the data bits are loaded into the data fifo while the a/d bit is loaded into the status fifo position normally used for parity error (sr[5]). framing error, overrun error, and break detect operate normally whether or not the receiver is enabled. automatic operation, wake up & doze the automatic configuration for this mode uses on-board comparators to examine incoming address characters. each uart channel may be assigned a unique address character. see the address register map and the description of the address recognition character register (arcr). the device may be programmed to automatically awaken a sleeping receiver and/or disable an active receiver based upon address characters received. the operation of the basic receiver is the same as described above for the default mode of wakeup operation except that the cpu need not be interrupted to make a change in the receiver status. three bits in the mode register 0, (mr0), control the address recognition operation. mr0[6] controls the rxfifo operation of the received character; mr0[1:0] controls the wake up mode options. if mr0[6] is set the address character will be pushed onto the rxfifo, otherwise the character will be discarded. (the charter is stripped from the data stream) the mr0[1:0] bits set the options as follows: a b'00 in this field, the default or poweron condition, puts the device in the default (cpu controlled) wake up mode of operation as described above. the autowake mode, enabled if mr0[0] is set, will cause the dedicated comparators to examine each address character presented by the receiver. if the received character matches the reference character in arcr, the receiver will be enabled and all subsequent characters will be fifoed until another address event occurs or the host cpu disables the receiver explicitly. the auto doze mode, enabled if mr0[1] is set, will automatically disable the receiver if an address is received that does not match the reference character in the arcr. the uart channel can present the address recognition event to the interrupt arbiter for irqn generation. the irqn generation may be masked by setting bit 5 of the interrupt mask register, imr. the bid level of an address recognition event is controlled by the bidding control register, bcra, of the channel. note: to ensure proper operation, the host cpu must clear any pending address recognition interrupt before enabling a disabled receiver operating in the special or wakeup mode. this may be accomplished via the cr commands to clear the address interrupt or by resetting the receiver. xon/xoff operation receiver mode since the receiving fifo resources in the octal uart are limited, some means of controlling a remote transmitter is desirable in order to lessen the probability of receiver overrun. the octal uart provides two methods of controlling the data flow. a hardware assisted means of accomplishing control, the socalled outofband flow control, and an inband flow control method. the outofband flow control is implemented through the ctsnrtsn signaling via the i/o ports. the operation of these hardware handshake signals is described in the receiver and transmitter discussions. inband flow control is a protocol for controlling a remote transmitter by embedding special characters within the message stream, itself. two characters, xon and xoff, which do not represent normal printable characters take on flow control definitions when the xon/xoff capability is enabled. flow control characters received may be used to gate the channel transmitter on and off. this activity is referred to as autotransmitter mode. to protect the channel receiver from overrun, fixed fill levels (hardware set at 12 characters) of the rxfifo may be employed to automatically insert xon/xoff characters in the transmitter's data stream. this mode of operation is referred to as autoreceiver mode. commands issued by the host cpu via the cr can simulate all these conditions. autotransmitter mode when a channel receiver pushes an xoff character into the rxfifo, the channel transmitter will finish transmission of the current character and then stop transmitting. a transmitter so idled can be restarted by the receipt of an xon character by the receiver, or by a hardware or software reset. the last option results in the loss of the untransmitted contents of the txfifo. when operating in this mode the command register commands for the transmitter are not effective. while idle data may be written to the txfifo and it continues to present its fill level to the interrupt arbiter and maintains the integrity of its status registers. use of '00' as an xon/xoff character is complicated by the receiver break operation which pushes a '00' character on the rxfifo. the xon/xoff character detectors do not discriminate this case from an xon/xoff character received through the rxd pin. note: to be recognized as an xon or xoff character, the receiver must have room in the rxfifo to accommodate the character. an xon/xoff character that is received resulting in a receiver overrun does not effect the transmitter nor is it pushed into the rxfifo, regardless of the state of the xon/xoff transparency bit, mr0(7). note: xon /xoff characters the xon/xoff characters with errors will be accepted as valid. the user has the option sending or not sending these characters to the fifo. error bits associated with xon/xoff will be stored normally to the receiver fifo. the channel's transmitter may be programmed to automatically transmit an xoff character without host cpu intervention when the rxfifo fill level exceeds a fixed limit (12). in this mode, it will conversely transmit an xon character when the rxfifo level drops below a second fixed limit (8). a character from the txfifo that has been loaded into the txd shift register will continue to transmit. character(s) in the txfifo that have not been popped are unaffected by the xon or xoff transmission. they will be transmitted after the xon/xoff activity concludes. if the fill level condition that initiates xon activity negates before the flow control character can begin transmission, the transmission of the flow control character will not occur, i.e. either of the following sequences may be transmitted depending on the timing of the fifo level changes with respect to the normal character times: character xoff xon character character character hardware keeps track of xoff characters sent that are not rescinded by an xon. this logic is reset by writing mr0(3) to '0'. if the user drops out of autoreceiver mode while the xisr shows xon as the last character sent, the xon/xoff logic will not automatically send the negating xon. host mode when neither the autoreceiver nor autotransmitter modes are set, the xon/xoff logic is operating in the host mode. in host mode, all
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 17 activity of the xon/xoff logic is initiated by commands to the crx command forces the transmitter to disable exactly as though an xoff character had been received by the rxfifo. the transmitter will remain disabled until the chip is reset or the cr(7:3) = 10110 (xoff resume) command is given. in particular, reception of an xon or disabling or reenabling the transmitter will not cause resumption of transmission. redundant crtxon/off commands, i.e. crtxon crtxon, are harmless, although they waste time. a crtxon may be used to cancel a crtxoff (and vice versa), but both may be transmitted depending on the timing with the transmit state machine. the kill crtx command can be used to cleanly terminate any crtx commands pending with the minimum impact on the transmitter. note: in no case will an xon/xoff character transmission be aborted. once the character is loaded into the tx shift register, transmission continues until completion or a chip reset is encountered. the kill crtx command has no effect in either of the auto modes. mode control xon/xoff mode control is accomplished via the mr0. bits 3 and 2 reset to zero resulting in all xon/xoff processing being disabled. if mr0[2] is set, the transmitter may be gated by xon/xoff characters received. if mr0[3] is set, the transmitter will transmit xon and xoff when triggered by attainment of fixed fill levels in the channel rxfifo. the mr0[7] bit also has an xon/xoff function control. if this bit is set, a received xon or xoff character is not pushed into the rxfifo. if cleared, the poweron and reset default, the received xon or xoff character is pushed onto the rxfifo for examination by the host cpu. the mr0(7) function operates regardless of the value in mr0(3:2) xon/xoff interrupts the xon/xoff logic generates interrupts only in response to recognizing either of the characters in the xoncr or xoffcr (xon or xoff character registers). the transmitter activity initiated by the xon/xoff logic or any cr command does not generate an interrupt. the character comparators operate regardless of the value in mr0(3:2). hence the comparators may be used as general purpose character detectors by setting mr0(3:2)='00' and enabling the xon/xoff interrupt in the imr. the octal uart can present the xon/xoff recognition event to the interrupt arbiter for irqn generation. the irqn generation may be masked by setting bit 4 of the interrupt mask register, imr. the bid level of an xon/xoff recognition event is controlled by the bidding control register x, bcrx, of the channel. the interrupt status can be examined in isr[4]. if cleared, no xon/xoff recognition event is interrupting. if set, an xon or xoff recognition event has been detected. the x interrupt status register, xisr, can be read for details of the interrupt and to examine other, noninterrupting, status of the xon/xoff logic. refer to the xisr in the register descriptions. the character recognition function and the associated interrupt generation is disabled on hardware or software reset.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 18 register definitions the operation of the octal uart is programmed by writing control words into the appropriate registers. operational feedback is provided via status registers which can be read by the host cpu. the octal uart addressing is loosely divided, by the address bit a(7), into two parts: 1) that part which is concerned with the configuration of the chip interface and communication modes. this part controls the elements of host interface setup, interrupt arbitration, i/o port configuration that part of the uart channel definitions that do not change in normal data handling. this section is listed in the oregister map, controlo. 2) that part concerned with the transmission and reception of the bit streams. this part concerns the data status, fifo fill levels, data error conditions, channel status, data flow control (hand shaking). this section is listed in the oregister map, datao. the global configuration control register (gccr) sets the type of bus cycle, interrupt vector modification and the power up or down mode. table 2. gccr global configuration control register this is a very important register! it should be the first register addressed during initialization . bit 7 bit 6 bit 5:3 bit 2:1 bit 0 reserved sync bus cycles reserved ivc, interrupt vector control power down mode reserved must be set to 0 0 async cycles 1 sync, nonpipe lined cycle reserved set to 0 00 no interrupt vector 01 ivr 10 ivr + channel code 11 ivr + interrupt type + channel code 0 device enabled 1 power down gccr(7): this bit is reserved for future versions of this device. if not set to zero most internal addressing will be disabled! gccr(6): bus cycle selection controls the operation of the host interface logic. if reset, the power on/reset default, the host interface can accommodate arbitrarily long bus i/o cycles. if the bit is set, the octal uart expects four sclk cycle bus i/o operations similar to those produced by an i80386 processor in nonpipelined mode. the major differences in these modes are observed in the dackn pin function. in sync mode, no negation of cen is required between cycles. gccr(2:1): interrupt vector configuration the ivc field controls if and how the assertion of iackn (the interrupt acknowledge pin) will form the interrupt vector for the octal uart. if b'00, no vector will be presented during an iackn cycle. the bus will be driven high (xff). if the field contains a b'01, the contents of the ivr, interrupt vector register, will be presented as the interrupt vector without modification. if ivc = b'10, the channel code will replace the 3 lsbs of the ivr; if ivc = b'11 then a modified interrupt type and channel code replace the 5 lsbs of the ivr. note: the modified type field ivr(4:3) is: 10 receiver w/o error 11 receiver with error 01 transmitter 00 all remaining sources gccr(0): power down control controls the power down function. during power down the internal oscillator is disabled, interrupt arbitration and all data transmission/reception activities cease, and all processing for input change detection, brg counter/timers and address/xon./xoff recognition is disabled. note: for maximum power savings it is recommended that all switching inputs be stopped and all input voltage levels be within 0.5 volt of the vcc and vss power supply levels. to switch from the asynchronous to the synchronous bus cycle mode, a single write operation to the gccr, terminated by a negation of the cen pin, is required. this cycle may be 4 cycles long if the setup time of the cen edge to sclk can be guaranteed. the host cpu must ensure that a minimum of two sclk cycles elapse before the initiation of the next (synchronous) bus cycle(s). a hardware or software reset is recommended for the unlikely requirement of returning to the asynchronous bus cycling mode. mr mode registers the user must exercise caution when changing the mode of running receivers, transmitters or brg counter/timers. the selected mode will be activated immediately upon selection, even if this occurs during the reception or transmission of a character. it is also possible to disrupt internal controllers by changing modes at critical times, thus rendering later transmission or reception faulty or impossible. an exception to this policy is switching from autoecho or remote loop back modes to normal mode. if the deselection occurs just after the receiver has sampled the stop bit (in most cases indicated by the assertion of the channel's rxrdy bit) and the transmitter is enabled, the transmitter will remain in autoecho mode until the end of the transmission of the stop bit.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 19 table 3. mr0 mode register 0 bit 7 bit 6 bit 5:4 bit 3:2 bit 1:0 xon/xoff * transparency address recognition * transparency txint inband flow control mode address recognition control 0 flow control characters received are pushed onto the rxfifo 1 flow control characters received are not pushed onto the rxfifo 0 address characters received are pushed to rxfifo 1 address characters received are not pushed onto the rxfifo txfifo interrupt level control 00 empty 01 3/4 empty 10 1/2 empty 11 not full 00 host mode, only the host cpu may initiate flow control actions through the cr 01 auto transmitter flow control 10 auto receiver flow control 11 auto receiver and transmitter flow control 00 none 01 auto wake 10 auto doze 11 auto wake and auto doze * if these bits are not 0 the characters will be stripped regardless of bits (3:2) or (1:0) mr0[7:6] control the handling of recognized xon/xoff or address characters. if set, the character codes are placed on the rxfifo along with their status bits just as ordinary characters are. if the character is not pushed onto the rxfifo, its received status will be lost unless the receiver is operating in the block error mode, see mr1[5] and the general discussion on receiver error handling. interrupt processing is not effected by the setting of these bits. see character recognition section. mr0[5:4] controls the fill level at which a transmitter begins to present its interrupt number to the interrupt arbitration logic. use of a low fill level minimizes the number of interrupts generated and maximizes the number of transmit characters per interrupt cycle. it also increases the probability that the transmitter will go idle for lack of characters in the txfifo. mr0[3:2] controls the xon/xoff processing logic. auto transmitter flow control allows the gating of transmitter activity by xon/xoff characters received by the channel's receiver. auto receiver flow control causes the transmitter to emit an xoff character when the rxfifo has loaded to a depth of 12 characters. draining the rxfifo to a level of 8 or less causes the transmitter to emit an xon character. all transmissions require no host involvement. a setting other than b'00 in this field precludes the use of the command register to transmit xon/xoff characters. note: interrupt generation in xon/xoff processing is controlled by the imr (interrupt mask register) of the individual channels. the interrupt may be cleared by a read of the xisr, the xon/xoff interrupt status register. receipt of a flow control character will always generate an interrupt if the imr is so programmed. the mr0[3:2] bits have effect on the automatic aspects of flow control only, not the interrupt generation. mr0[1:0] this field controls the operation of the address recognition logic. if the device is not operating in the special or awakeupo mode, this hardware may be used as a general purpose character detector by choosing any combination except b'00. interrupt generation is controlled by the channel imr. the interrupt may be cleared by a read of the xisr, the xon/xoff interrupt status register. see further description in the section on the wake up mode. table 4. mr1 mode register 1 bit 7 bit 6 bit 5 bit 4:3 bit 2 bit 1:0 rxrts control isr read mode error mode parity mode parity type bits per charac- ter 0 off 1 on 0 isr unmasked 1 isr masked 0 = character 1 = block 00 with parity 01 force parity 10 no parity 11 special mode 0 = even 1 = odd 00 5 01 6 10 7 11 8 mr1[7]: receiver request to send control this bit controls the deactivation of the rtsn output (i/o2) by the receiver. this output is asserted and negated by commands applied via the command register. mr1[7] = 1 causes rtsn to be automatically negated upon receipt of a valid start bit if the receiver fifo is full or greater. rtsn is reasserted when an the fifo fill level falls below full. this constitutes a change from previous members of philips (signets)' uart families where the rtsn function triggered on fifo full. this behavior caused problems with pc uarts that could not stop transmission at the proper time. . the rtsn feature can be used to prevent overrun in the receiver, by using the rtsn output signal, to control the ctsn input of the transmitting device. mr1[6]: interrupt status masking this bit controls the readout mode of the interrupt status register, isr. if set, the isr reads the current status masked by the imr, i.e. only interrupt sources enabled in the imr can ever show a '1' in the isr. if cleared, the isr shows the current status of the interrupt source without regard to the interrupt mask setting. mr1[5]: error mode select this bit selects the operating mode of the three fifoed status bits (fe, pe, received break). in the character mode, status is provided on a character by character basis; the status applies only to the character at. the bottom of the fifo. in the block mode, the status provided in the sr for these bits is the accumulation (logical or) of
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 20 the status for all characters coming to the top of the fifo, since the last reset error command was issued. mr1[4:3]: parity mode select if 'with parity' or 'force parity' is selected, a parity bit is added to the transmitted character and the receiver performs a parity check on incoming data. mr1[4:3] = 11 selects the channel to operate in the special wake up mode. mr1[2]: parity type select this bit sets the parity type (odd or even) if the 'with parity' mode is programmed by mr1[4:3], and the polarity of the forced parity bit if the 'force parity' mode is programmed. it has no effect if the 'no parity' mode is programmed. in the special 'wake up' mode, it selects the polarity of the a/d bit. the parity bit is used to an address or data byte in the 'wake up' mode. mr1[1:0]: bits per character select this field selects the number of data bits per character to be transmitted and received. this number does not include the start, parity, or stop bits. table 5. mr2 mode register 2 the mr2 register provides basic channel setup control that may need more frequent updating. bits 7:6 bit 5 bit 4 bit 3:2 bit 1:0 channel mode txrts control ctsn enable tx rxint stop length 00 = normal 01 = auto echo 10 = local loop 11 = remote loop 0 = no 1 = yes 0 = no 1 = yes 00 = rrdy 01 = half full 10 = 3/4 full 11 = full 00 = 1.0 01 = 1.5 10 = 2.0 11 = 9/16 mr2[7:6] mode select the octal uart can operate in one of four modes: mr2[7:6] = b'00 is the normal mode, with the transmitter and receiver operating independently. mr2[7:6] = b'01 places the channel in the automatic echo mode, which automatically re transmits the received data. the following conditions are true while in automatic echo mode: received data is reclocked and retransmitted on the txd output. the receive clock is used for the transmitter. the receiver must be enabled, but the transmitter need not be enabled. the txrdy and txemt status bits are inactive. the received parity is checked, but is not regenerated for transmission, i.e., transmitted parity bit is as received. character framing is checked, but the stop bits are re-transmitted as received. a received break is echoed as received until the next valid start bit is detected . cpu to receiver communication continues normally, but the cpu to transmitter link is disabled. two diagnostic modes can also be selected. mr2[7:6] = b'10 selects local loop back mode. in this mode: the transmitter output is internally connected to the receiver input. the transmit clock is used for the receiver. the txd output is held high. the rxd input is ignored. the transmitter must be enabled, but the receiver need not be enabled. cpu to transmitter and receiver communications continue normally. the second diagnostic mode is the remote loop back mode, selected by mr2[7:6] = b'11. in this mode: received data is reclocked and retransmitted on the txd output. the receive clock is used for the transmitter. received data is not sent to the local cpu, and the error status conditions are inactive. the received parity is not checked and is not regenerated for transmission, i.e., the transmitted parity bit is as received. the receiver must be enabled, but the transmitter need not be enabled. character framing is not checked, and the stop bits are re-transmitted as received. a received break is echoed as received until the next valid start bit is detected. mr2[5] transmitter request to send control this bit controls the deactivation of the rtsn output (i/o2) by the transmitter. this output is manually asserted and negated by appropriate commands issued via the command register. mr2[5] = 1 causes rtsn to be reset automatically one bit time after the characters in the transmit shift register and in the txfifo (if any) are completely transmitted (includes the programmed number of stop bits if the transmitter is not enabled). this feature can be used to automatically terminate the transmission of a message as follows: program auto reset mode: mr2[5]= 1. enable transmitter. assert rtsn via command. send message. after the last character of the message is loaded to the txfifo, disable the transmitter. before disabling the transmitter be sure the status register txemt bit is not set (i.e., the transmitter is not underrun). the underrun condition is indicated by the txemt bit in the sr being set. the condition occurs immediately upon enabling the transmitter and persists until a character is loaded to the txfifo. the underrun condition will not be a problem as long as the controlling processor keeps up with the transmitter data flow. the proper operation of this feature assumes that the transmitter is busy (not underrun) when the disable is issued. the last character will be transmitted and rtsn will be reset one bit time after the last stop bit. note: when the transmitter controls the rtsn pin, the meaning of the pin is completely changed. it has nothing to do with the normal rtsn/ctsn ahandshakingo. it is usually used to mean aend of messageo and to aturn the line aroundo in simplex communications. mr2[4] clear to send control the state of this bit determines if the ctsn input (i/o0) controls the operation of the transmitter. if this bit is 0, ctsn has no effect on
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 21 the transmitter. if this bit is a 1, the transmitter checks the state of ctsn each time it is ready to begin sending a character. if it is asserted (low), the character is transmitted. if it is negated (high), the txd output remains in the marking state and the transmission is delayed until ctsn goes low. changes in ctsn, while a character is being transmitted, do not affect the transmission of that character. this feature can be used to prevent overrun of a remote receiver. mr2[3:2] rxint control field controls when interrupt arbitration for a receiver begins based on rxfifo fill level. this field allows interrupt arbitration to begin when the rxfifo is full, 3/4 full, 1/2 full or when it contains at least 1 character. mr2[1:0] stop bit length select this field programs the length of the stop bit appended to the transmitted character. stop bit lengths of 9/16, 1, 1.5 and 2 bits can be programmed for character lengths of 6, 7, and 8 bits. for a character length of 5 bits, 1, 1.5 and 2 stop bits can be programmed. in all cases, the receiver only checks for a mark condition at the center of the first stop bit position (one bit time after the last data bit, or after the parity bit if parity is enabled). if an external 1x clock is used for the transmitter, mr2[1] = 0 selects one stop bit and mr2[1] = 1 selects two stop bits to be transmitted. table 6. rxcsr and txcsr receiver and transmitter clock select registers both registers consist of single 5 bit field that selects the clock source for the receiver and transmitter, respectively. the unused bits in this register read b'111. the baud rates shown in the table below are based on the x1 crystal frequency of 3.6864mhz. the baud rat es shown below will vary as the x1 crystal clock varies. for example, if the x1 rate is changed to 7.3728 mhz all the rates below will double. bits 7:5 bits 4:0 reserved transmitter/receiver clock select code, (see clock mux table below) table 7. data clock mux cclk maximum rate is 8mhz. data clock rates will follow exactly the ratio of cclk to 3.6864mhz. clock select code csr (4:0) clock selection, cclk = 3.6864 mhz clock select code clock selection, cclk = 3.6864 mhz 00000 brg 50 10000 brg 19.2k 00001 brg 75 10001 brg 28.8k 00010 brg 150 10010 brg 38.4k 00011 brg 200 10011 brg 57.6k 00100 brg 300 10100 brg 115.2k 00101 brg 450 10101 brg 230.4k 00110 brg 600 10110 g in 0 00111 brg 900 10111 g in 1 01000 brg 1200 11000 brg c/t 0 01001 brg 1800 11001 brg c/t 1 01010 brg 2400 11010 reserved 01011 brg 3600 11011 i/o2 rcvr, i/o3 xmit 16x 01100 brg 4800 11100 i/o2 rcvr, i/o3 xmit1x 01101 brg 7200 11101 reserved 01110 brg 9600 11110 reserved 01111 brg 14.4k 11111 reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 22 table 8. cr command register cr is used to write commands to the octal uart. bits 7:3 bit 2 bit 1 bit 0 channel com- mand codes see acommand register tableo lock txd and rxfifo en- ables enable tx enable rx cr[2] lock txd and rxfifo enables if set, the transmitter and receiver enable bits, cr[1:0] are not significant. the enabled/disabled state of a receiver or transmitter can be changed only if this bit is at zero during the time of the write to the command register. writes to the upper bits of the cr would usually have cr[2] at 1 to maintain the condition of the receiver and transmitter. the bit provides a mechanism for writing commands to a channel, via cr[7:3], without the necessity of keeping track of or reading the current enable status of the receiver and transmitter. cr[1] enable transmitter a one written to this bit enables operation of the transmitter. the txrdy status bit will be asserted. when disabled by writing a zero to this bit, the command terminates transmitter operation and resets the txrdy and txemt status bits. however, if a character is being transmitted or if characters are loaded in the txfifo when the transmitter is disabled, the transmission of the all character(s) is completed before assuming the inactive state. cr[0] enable receiver a one written to this bit enables operation of the receiver. if not in the special wake up mode, this also forces the receiver into the search for start bit state. if a zero is written, this command terminates operation of the receiver immediately a character being received will be lost. the command has no effect on the receiver status bits or any other control registers. if the special wakeup mode is programmed, the receiver operates even if it is disabled (see wakeup mode). cr[7:3] miscellaneous commands ( see table below) the encoded value of this field can be used to specify a single command as follows: 00000 no command. 00001 reserved 00010 reset receiver. resets the receiver as if a hardware reset had been applied. the receiver is disabled and the fifo pointer is reset to the first location effectively discarding all unread characters in the fifo. 00011 reset transmitter. resets the transmitter as if a hardware reset had been applied. 00100 reset error status. clears the received break, parity error, framing error, and overrun error bits in the status register (sr[7:4]). used in character mode to clear overrun error status (although rb, pe and fe bits will also be cleared), and in block mode to clear all error status after a block of data has been received. 00101 reset break change interrupt. causes the break detect change bit in the interrupt status register (isr[2]) to be cleared to zero. 00110 start break. forces the txd output low (spacing). if the transmitter is empty, the start of the break condition will be delayed up to two bit times. if the transmitter is active, the break begins when transmission of the current character is completed. if there are characters in the txfifo, the start of break is delayed until those characters, or any others loaded after it have been transmitted (txemt must be true before break begins). the transmitter must be enabled to start a break. 00111 stop break. the txd line will go high (marking) within two bit times. txd will remain high for one bit time before the next character, if any, is transmitted. 01000 assert rtsn. causes the rtsn output to be asserted (low). 01001 negate rtsn. causes the rtsn output to be negated (high). note: the two commands above actually reset and set, respectively, the i/o2 or i/o1 pin associated with the i/opior register. 01010 reserved 01011 reserved 01100 reserved 01101 block error status mode. upon reset of the device or an individual receiver, the block mode of receiver error status accumulates as each character moves to the bottom of the rxfifo, the position from which it will be read. in this mode of operation, the rxfifo may contain a character with nonzero error status for some time. the status will not reflect the error character's presence until it is ready to be popped from the rxfifo. command 01101 allows the error status to be updated as each character is pushed into the rxfifo. this allows the earliest detection of a problem character, but complicates the determination of exactly which character is causing the error. this mode of block error accumulation may be exited only by resetting the chip or the individual receiver. 01111 reserved. 10000 transmit an xon character 10001 transmit an xoff character 10010 reserved for channels bh, for channel a: enables a gang write of xon character registers. after this command is issued, a write to the channel a xon character register will result in a write to all channel's xon character registers. this command provides a mechanism to initialize all the xon character registers with one write. a write to channel a xon character register returns the octal uart to the individual xon write mode. 10011 reserved for channels bh, for channel a: enables gang write of xoff character registers. after this command is issued, a write to the channel a xoff character register will result in a write to all channel's xoff character registers. this command provides a mechanism to initialize all the xoff character registers with one write. a write to channel a xoff character register returns the octal uart to the individual xoff write mode. note: gang writing of xon/xoff character commands: issuing command causes the next write to xon/xoff character register a to effect a simultaneous write into the other 3 xon/xoff character registers. after the xon/xoff character register a is written, the 28l198 returns to individual write mode for the xon/xoff character registers. other intervening reads and writes are ignored. the device resets to individual write mode. 10100 reserved for channels b-h, for channel a: executes a gang load of xon character registers. executing this command causes a write of the value x'11 to all channel's xon character registers. this command provides a mechanism to initialize all the xon character registers to a default value with one write. execution of this command is immediate and does not effect the timing of subsequent host i/o operations. 10101 reserved for channels b-h, for channel a: executes a gang load of xoff character registers. executing this command causes a write of the value x'13 to all channel's xoff character registers. this command provides a
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 23 mechanism to initialize all the xoff character registers to a default value with one write. execution of this command is immediate and does not effect the timing of subsequent host i/o operations. 10110 xoff resume command (crxoffre; not active in aauto-transmit modeo). a command to cancel a previous host xoff command. upon receipt, the channel's transmitter will transfer a character, if any, from the txfifo and begin transmission. 10111 host xoff command (crxoff). this command allows tight host cpu control of the flow control of the channel transmitter. when interrupted for receipt of an xoff character by the receiver, the host may stop transmission of further characters by the channel transmitter by issuing the host xoff command. any character that has been transferred to the txd shift register will complete its transmission, including the stop bit. 11000 cancel host transmit flow control command. issuing this command will cancel a previous transmit command if the flow control character is not yet loaded into the txd shift register. if there is no character waiting for transmission or if its transmission has already begun, then this command has no effect. 1100111011 reserved 11011 reset address recognition status. this command clears the interrupt status that was set when an address character was recognized by a disabled receiver operating in the special mode. 1110011101 reserved 11110 resets all uart channel registers. this command provides a means to zero all the uart channels that are not reset to x'00 by a reset command or a hardware reset. 11111 reserved for channels b-h, for channel a: executes a chip wide reset. executing this command in channel a is equivalent to a hardware reset with the resetn pin. executing in channel b-h, has no effect. table 9. command register code commands x'12, x13, x'14, x'15, x'1f (marked with*) are global and exist only in channel a's register space. channel command code channel command channel command code channel command cr[7:3] description cr[7:3] description 00000 nop 10000 transmit xon 00001 reserved 10001 transmit xoff 00010 reset receiver 10010 gang write xon character registers * 00011 reset transmitter 10011 gang write xoff character registers * 00100 reset error status 10100 gang load xon character registers dc1 * 00101 reset break change interrupt 10101 gang load xoff character registers dc3 * 00110 begin transmit break 10110 xoff resume command 00111 end transmit break 10111 host xoff command 01000 assert rtsn (i/o2 or i/o1) 11000 cancel transmit x char command 01001 negate rtsn (i/o2 or i/o1) 11001 reserved 01010 set timeout mode on 11010 reserved 01011 reserved 11011 reset address recognition status 01100 set timeout mode off 11100 reserved 01101 block error status configure 11101 reserved 01110 reserved 11110 reset all uart channel registers 01111 reserved 11111 reset device * table 10. sr channel status register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 received break framing error parity error overrun error txemt txrdy rxfull rxrdy 0 no 1 yes 0 no 1 yes 0 no 1 yes 0 no 1 yes 0 no 1 yes 0 no 1 yes 0 no 1 yes 0 no 1 yes sr[7] received break this bit indicates that an all zero character of the programmed length has been received without a stop bit. only a single fifo position is occupied when a break is received; further entries to the fifo are inhibited until the rxd line returns to the marking state for at least one half bit time (two successive edges of the internal or external 1x clock). when this bit is set, the change in break bit in the isr (isr[2]) is set. isr[2] is also set when the end of the break condition, as defined above, is detected. the break detect circuitry is capable of detecting breaks that originate in the middle of a received character. however, if a break begins in the middle of a character, it must last until the end of the next character in order for it to be detected. sr[6] framing error (fe) this bit, when set, indicates that a stop bit was not detected when the corresponding data character in the fifo was received. the stop bit check is made in the middle of the first stop bit position.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 24 sr[5] parity error (pe) this bit is set when the 'with parity' or 'force parity' mode is programmed and the corresponding character in the fifo was received with incorrect parity. in the special 'wake up mode', the parity error bit stores the received a/d bit. sr[4] overrun error (oe) this bit, when set, indicates that one or more characters in the received data stream have been lost. it is set upon receipt of a new character when the rxfifo is full and a character is already in the receive shift register waiting for an empty fifo position. when this occurs, the character in the receive shift register (and its break detect, parity error and framing error status, if any) is lost. this bit is cleared by a reset error status command. sr[3] transmitter empty (txemt) this bit is set when the transmitter underruns, i.e., both the txfifo and the transmit shift register are empty. it is set after transmission of the last stop bit of a character, if no character is in the txfifo awaiting transmission. it is reset when the txfifo is loaded by the cpu, or when the transmitter is disabled. sr[2] transmitter ready (txrdy) this bit, when set, indicates that the txfifo is ready to be loaded with a character. this bit is cleared when the txfifo is loaded by the cpu and is set when the last character is transferred to the transmit shift register. txrdy is reset when the transmitter is disabled and is set when the transmitter is first enabled, e.g., characters loaded in the txfifo while the transmitter is disabled will not be transmitted. sr[1] rxfifo full (rxfull) this bit is set when a character is transferred from the receive shift register to the receive fifo and the transfer causes the fifo to become full, i.e., all sixteen rxfifo positions are occupied. it is reset when the cpu reads the rxfifo and that read leaves one empty byte position. if a character is waiting in the receive shift register because the rxfifo is full, rxfull is not reset until the second read of the rxfifo since the waiting character is immediately loaded to the rxfifo. sr[0] receiver ready (rxrdy) this bit indicates that a character has been received and is waiting in the rxfifo to be read by the cpu. it is set when the character is transferred from the receive shift register to the rxfifo and reset when the cpu reads the rxfifo, and no more characters are in the rxfifo. table 11. isr interrupt status register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 i/o port change of state receiver watch-dog timeout address recogni- tion event xon/off event always 0 change of break state rxrdy receiver has entered arbitration process txrdy transmitter has entered arbitration process this register provides the status of all potential interrupt sources for a uart channel. when generating an interrupt arbitration value, the contents of this register are masked by the interrupt mask register (imr). if a bit in the isr is a '1' and the corresponding bit in the imr is also a '1', interrupt arbitration for this source will begin. if the corresponding bit in the imr is a zero, the state of the bit in the isr can have no affect on the irqn output. note that the imr may or may not mask the reading of the isr as determined by mr1[6]. if mr1[6] is cleared, the reset and power on default, the isr is read without modification. if mr1[6] is set, the a read of the isr gives a value of the isr anded with the imr. isr[7] input change of state this bit is set when a change of state occurs at the i/o1 or i/o0 input pins. it is reset when the cpu reads the input port register, ipr. isr[6] watch-dog timeout this bit is set when the receiver's watch-dog timer has counted more than 64 bit times since the last rxfifo event. rxfifo events are a read of the rxfifo or grxfifo, or the push of a received character into the fifo. the interrupt will be cleared automatically upon the push of the next character received or when the rxfifo or grxfifo is read. the receiver watch-dog timer is included to allow detection of the very last characters of a received message that may be waiting in the rxfifo, but are too few in number to successfully initiate an interrupt. refer to the watch-dog timer description for details of how the interrupt system works after a watch-dog timeout. isr[5] address recognition status change this bit is set when a change in receiver state has occurred due to an address character being received from an external source and comparing to the reference address in arcr. the bit and interrupt is negated by a write to the cr with command x11011, reset address recognition status. isr[4] xon/xoff status change this bit is set when an xon/xoff character being received from an external source. the bit is negated by a read of the channel xon interrupt status register, xisr. isr[3] reserved always reads a 0 isr[2] change in channel break status this bit, when set, indicates that the receiver has detected the beginning or the end of a received break. it is reset when the cpu issues a reset break change interrupt command via the cr. isr[1] receiver ready the general function of this bit is to indicate that the rxfifo has data available. the particular meaning of this bit is programmed by mr2[3:2]. if programmed as receiver ready(mr2[3:2] = 00), it indicates that at least one character has been received and is waiting in the rxfifo to be read by the host cpu. it is set when the character is transferred from the receive shift register to the rxfifo and reset when the cpu reads the last character from the rxfifo. if mr2[3:2] is programmed as fifo full, isr[1] is set when a character is transferred from the receive holding register to the rxfifo and the transfer causes the rxfifo to become full, i.e. all sixteen fifo positions are occupied. it is reset when ever rxfifo is not full. if there is a character waiting in the receive shift register because the fifo is full, the bit is set again when the waiting character is transferred into the fifo. the other two conditions of these bits, 3/4 and half full operate in a similar manner. the isr[1] bit is set when the rxfifo fill level
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 25 meets or exceeds the value; it is reset when the fill level is less. see the description of the mr2 register. note: this bit must be at a one (1) for the receiver to enter the arbitration process. it is the fact that this bit is zero (0) when the rxfifo is empty that stops an empty fifo from entering the interrupt arbitration. also note that the meaning if this bit is not quite the same as the similar bit in the status register (sr). isr[0] transmitter ready the general function of this bit is to indicate that the txfifo has an at least one empty space for data. the particular meaning of the bit is controlled by mr0[5:4] indicates the txfifo may be loaded with one or more characters. if mr0[5:4] = 00 (the default condition) this bit will not set until the txfifo is empty sixteen bytes available. if the fill level of the txfifo is below the trigger level programmed by the txint field of the mode register 0, this bit will be set. a one in this position indicates that at least one character can be sent to the txfifo. it is turned off as the txfifo is filled above the level programmed by mr0[5:4. this bit turns on as the fifo empties; the rxfifo bit turns on as the fifo fills. this often a point of confusion in programming interrupt functions for the receiver and transmitter fifos. note: this bit must be at a one (1) for the transmitter to enter the arbitration process. it is the fact that this bit is zero (0) when the rxfifo is full that stops a full fifo from entering the interrupt arbitration. also note that the meaning if this bit is not quite the same as the similar bit in the status register (sr). table 12. imr interrupt mask register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 i/o port change of state receiver watch-dog timeout address recogni- tion event xon/off event set to 0 change of break state rxrdy inter- rupt txrdy inter- rupt the programming of this register selects which bits in the isr cause an interrupt output. if a bit in the isr is a '1' and the corresponding bit in the imr is a '1', the interrupt source is presented to the internal interrupt arbitration circuits, eventually resulting in the irqn output being asserted (low). if the corresponding bit in the imr is a zero, the state of the bit in the isr has no affect on the irqn output. imr[7] controls if a change of state in the inputs equipped with input change detectors will cause an interrupt. imr[6] controls the generation of an interrupt by the watch-dog timer event. if set, a count of 64 idle bit times in the receiver will begin interrupt arbitration. imr[5] enables the generation of an interrupt in response to changes in the address recognition circuitry of the special mode (multi-drop or wakeup mode). imr[4] enables the generation of an interrupt in response to recognition of an inband flow control character. imr[3] reserved imr[2] enables the generation of an interrupt when a break condition has been detected by the channel receiver. imr[1] enables the generation of an interrupt when servicing for the rxfifo is desired. imr[0] enables the generation of an interrupt when servicing for the txfifo is desired. table 13. rxfifo receiver fifo bit[10] bit[9] bit[8] bits [7:0] break received status framing error sta- tus parity error sta- tus 8 data bits msbs =0 for 7,6,5 bit data the fifo for the receiver is 11 bits wide and 16 owordso deep. the status of each byte received is stored with that byte and is moved along with the byte as the characters are read from the fifo. the upper three bits are presented in the status register and they change in the status register each time a data byte is read from the fifo. therefor the status register should be read before the byte is read from the rxfifo if one wishes to ascertain the quality of the byte the forgoing applies to the ocharacter erroro mode of status reporting. see mr1[5] and orxfifo statuso descriptions for oblock erroro status reporting. briefly oblock erroro gives the accumulated error of all bytes received in the rxfifo since the last areset erroro command was issued. (cr = x'04) table 14. txfifo transmitter fifo bits 7:0 8 data bits. msbs set to 0 for 7, 6, 5 bit data the fifo for the transmitter is 8 bits wide by 16 bytes deep. for character lengths less than 8 bits the upper bits will be ignored by the transmitter state machine and thus are effectively discarded. table 15. bcrbrk bidding control register break change bits 7:3 bits 2:0 reserved msb of break change interrupt bid this register provides the 3 msbs of the interrupt arbitration number for a break change interrupt. table 16. bcrcos bidding control register change of state bits 7:3 bits 2:0 reserved msb of a cos interrupt bid read as x'0 this register provides the 3 msbs of the interrupt arbitration number for a change of state, cos, interrupt. table 17. bcrx bidding control register xon bits 7:3 bits 2:0 reserved msb of an xon/xoff interrupt bid this register provides the 3 msbs of the interrupt arbitration number for an xon/xoff interrupt.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 26 table 18. bcra bidding control register address bits 7:3 bits 2:0 reserved msb of an address recognition event in- terrupt bid this register provides the 3 msbs of the interrupt arbitration number for an address recognition event interrupt. table 19. xoncr xon character register bits 7:0 8 bits of the xon character recognition an 8 bit character register that contains the compare value for an xon character. table 20. xoffcr xoff character register bits 7:0 8 bits of the xoff character recognition an 8 bit character register that contains the compare value for an xoff character. table 21. arcr address recognition character register bits 7:0 8 bits of the multidrop address character recognition an 8 bit character register that contains the compare value for the wakeup address character
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 27 table 22. xisr xonxoff interrupt status register bits 7:6 bits 5:4 bits 3:2 bits 1:0 received x character sta- tus automatic x character transmis- sion status txd flow status txd character status 00 none 01 xoff received 10 xon received 11 both received 00 none 01 xon transmitted 10 xoff transmitted 11 illegal, does not occur 00 normal 01 txd halt pending 10 reenabled 11 flow disabled 00 normal txd data 01 wait on normal data 10 xoff in pending 11 xon in pending xisr[7:6] received x character status. this field can be read to determine if the receiver has encountered an xon or xoff character in the incoming data stream. these bits are maintained until a read of the xisr. the field is updated by x character reception regardless of the state of mr0(7, 3:2) or imr(4). the field can therefore be used as a character detector for the bit patterns stored in the xon and xoff character registers. xisr[5:4] automatic transmission status. this field indicates the last flow control character sent in the auto receiver flow control mode. if auto receiver mode has not been enabled, this field will always read b'00. it will likewise reset to b'00 if mr0(3) is reset. if the auto receiver mode is exited while this field reads b'10, it is the user's responsibility to transmit an xon, when appropriate. xisr[3:2] txd flow status. this field tracks the transmitter's flow status as follows: 00 normal. the flow control is under host control. 01 txd halt pending. after the current character finishes the transmitter will stop. the status will then change to b'00. 10 reenabled. the transmitter had been halted and restarted. it is sending data characters. after a read of the xisr, it will return to onormalo status. 11 disabled. the transmitter is flow controlled. xisr[1:0] txd character status. this field allows determination of the type of character being transmitted. if xisr(1:0) is b'01, the channel is waiting for a data character to transfer from the txfifo. this condition will only occur for a bit time after an xon or xoff character transmission unless the txfifo is empty. table 23. wdtrcr watch-dog timer enable register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 wdt h wdt g wdt f wdt e wdt d wdt c wdt b wdt a 1 on 0 off 1 on 0 off 1 on 0 off 1 on 0 off 1 on 0 off 1 on 0 off 1 on 0 off 1 on 0 off this register enables the watch-dog timer for each of the 8 receivers on the octal uart. table 24. brgtru brg timer reload registers, upper bits 7:0 8 msb of the brg timer divisor. this is the upper byte of the 16 bit value used by the brg timer in generating a baud rate clock table 25. brgtrl brg timer reload registers, lower bits 7:0 8 lsb of the brg timer divisor. this is the lower byte of the 16 bit value used by the brg timer in generating a baud rate clock. table 26. brgtcr brg timer control register (brgtcr) bit 7 bit 6:4 bit 3 bit 2:0 brgtcr b, register control brgtcr b, clock selection brgtcr a, register control brgtcr a, clock selection 0 resets the timer register and holds it stopped 1 allows the timer register to run. 000 sclk / 16 001 sclk / 32 010 sclk/ 64 011 sclk / 128 100 x1 101 x1 / 2 110 i/o1b 111 g in (1) 0 resets the timer register and holds it stopped. 1 allows the timer register to run. 000 sclk / 16 001 sclk / 32 010 sclk / 64 011 sclk / 128 100 x1 101 x1 / 2 110 i/o1a 111 g in (0) start/stop control and clock select register for the two brg counters. the clock selection is for the input to the counters. it is that clock divided by the number represented by the brgtu and brgtl the will be used as the 16x clock for the receivers and transmitters. when the brg timer clock is selected for the receiver(s) or transmitter(s) the receivers and transmitters will consider it as a 16x clock and further device it by 16. in other words the receivers and transmitters will always be in the 16x ode of operation when the internal brg timer is selected for their clock.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 28 table 27. icr interrupt control register bit 7 bits 6:0 reserved. set to 0 upper seven bits of the arbitration threshold this register provides a single 7 bit field called the interrupt threshold for use by the interrupt arbiter. the field is interpreted as a single unsigned integer. the interrupt arbiter will not generate an external interrupt request, by asserting irqn, unless the value of the highest priority interrupt exceeds the value of the interrupt threshold. if the highest bidder in the interrupt arbitration is lower than the threshold level set by the icr, the current interrupt register, cir, will contain x'00. refer to the functional description of interrupt generation for details on how the various interrupt source bid values are calculated. note: while a watch-dog timer interrupt is pending, the icr is not used and only receiver codes are presented for interrupt arbitration. this allows receivers with very low count values (perhaps below the threshold value) to win interrupt arbitration without requiring the user to explicitly lower the threshold level in the icr. these bits are the upper seven (7) bits of the interrupt arbitration system. the lower three (3) bits represent the channel number. ucir update cir a command based upon a decode of address x'8c. ( ucir is not a register!) a write (the write data is not important; a adon't careo) to this 'register' causes the current interrupt register to be updated with the value that is winning interrupt arbitration. the register would be used in systems that poll the interrupt status registers rather than wait for interrupts. alternatively, the cir is normally updated during an interrupt acknowledge bus cycle in interrupt driven systems. table 28. cir current interrupt register bits 7:6 bits 5:3 bits 2:0 type current byte count/type channel number 00 other 000 no interrupt 001 change of state 010 address recognition 011 xon/xoff status 100 not used 101 break change 110, 111 do not occur 000 = a 001 = b 010 = c 011 = d 111 = h 01 transmit 11 receive w/ errors 10 receive w/o errors current count code 0 => 9 or less characters 1 => 10 characters . . 5 => 14 characters 6 => 15 characters 7 => 16 (see also gibcr) 000 = a 001 = b 010 = c 011 = d 111 = h the current interrupt register is provided to speed up the specification of the interrupting condition in the octal uart. the cir is updated at the beginning of an interrupt acknowledge bus cycle or in response to an update cir command. (see immediately above) although interrupt arbitration continues in the background, the current interrupt information remains frozen in the cir until another iackn cycle or update cir command occurs. the lsbs of the cir provide part of the addressing for various global interrupt registers including the gibcr, gicr, gitr and the global rxfifo and txfifo fifo. the host cpu need not generate individual addresses for this information since the interrupt context will remain stable at the fixed addresses of the global interrupt registers until the cir is updated. for most interrupting sources, the data available in the cir alone will be sufficient to set up a service routine. the cir may be processed as follows: if cir[7] = 1, then a receiver interrupt is pending and the count is cir[5:3], channel is cir[2:0] else if cir[6] = 1 then a transmitter interrupt is pending and the count is cir[5:3], channel is cir[2:0] else the interrupt is another type, specified in cir[5:3] note: the gibcr, global interrupting byte count register, may be read to determine an exact character count if 9 or less characters are indicated in the count field of the cir. table 29. ivr interrupt vector register bits 7:0 8 data bits of the interrupt vector (ivr) the ivr contains the byte that will be placed on the data bus during an iackn cycle when the gccr bits (2:1) are set to binary `01'. this is the unmodified form of the interrupt vector. table 30. modification of the ivr bits 7:5 bits 4:3 bits 2:0 always contains bits (7:5) of the ivr will be replaced with current inter- rupt type if ivc field of gccr > 1 replaced with inter- rupting channel num- ber if ivc field of gccr > 0 the table above indicates how the ivr may be modified by the interrupting source. the modification of the ivr as it is presented to the data bus during an iack cycle is controlled by the setting of the bits (2:1) in the gccr (global chip configuration register) table 31. gicr global interrupting channel register bits 7:3 bits 2:0 reserved channel code 100 = e 000 = a 101 = f 001 = b 110 = g 010 = c 111 = h 011 = d a register associated with the interrupting channel as defined in the cir. it contains the interrupting channel code for all interrupts.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 29 table 32. gibcr global interrupting byte count register bits 7:4 bits 3:0 reserved channel byte count code 0000 = 1 and rxrdy status set for rxfifo 0000 = 1 and txrdy status set for txd 0001 = 2 0010 = 3 . 1111 = 16 a register associated with the interrupting channel as defined in the cir. its numerical value equals the number of bytes minus 1 (count 1) ready for transfer to the transmitter or transfer from the receiver. it is undefined for other types of interrupts table 33. global interrupting type register bit 7:6 bit 5 bit 4:3 bit 2:0 receiver interrupt transmitter interrupt reserved other types 0x not receiver 10 with receive errors 11 w/o receive errors 0 not transmitter 1 transmitter interrupt read b'00 000 not oothero type 001 change of state 010 address recognition event 011 xon/xoff status 100 not used 101 break change 11x do not occur a register associated with the interrupting channel as defined in the cir. it contains the type of interrupt code for all interrupts. table 34. grxfifo global rxfifo register bits 7:0 8 data bits of rxfifo. msbs set to 0 for 7, 6, 5 bit data the rxfifo of the channel indicated in the cir channel field. undefined when the cir interrupt context is not a receiver interrupt. global txfifo register table 35. gtxfifo global txfifo register bits 7:0 8 data bits of txfifo. msbs not used for 7, 6, 5 bit data the txfifo of the channel indicated in the cir channel field. undefined when the cir interrupt context is not a transmitter interrupt. writing to the gtxfifo when the current interrupt is not a transmitter event may result in the characters being transmitted on a different channel than intended. table 36. ipr input port register, bit 7 bit 6 bit 7 bit 6 bit 3 bit 2 bit 1 bit 0 i/o3 change i/o2 change i/o1 change i/o0 change i/o3 state i/o2 state i/o1 state i/o0 state 0 no change 1 change 0 no change 1 change 0 no change 1 change 0 no change 1 change the actual logic level at the i/o pin. 1 = high level; 0 = low level. this register may be read to determine the current level of the i/o pins and examine the output of the change detectors assigned to each pin. if the change detection is not enabled or if the pin is configured as an output, the associated change field will read b'0. table 37. i/opior i/o port interrupt and output register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 i/o3 enable i/o2 enable i/o1 enable i/o0 enable i/o3 output i/o2 output i/o1 output i/o0 output 0 disable 1 enable 0 disable 1 enable 0 disable 1 enable 0 disable 1 enable opr[3] opr[2] opr[1] opr[0] i/opior[7:4] bits activate the input change of state detectors. if a pin is configured as an output, a b'1 value written to a i/o field has no effect. i/opior[3:0] bits hold the datum which is the inverse of the datum driven to its associated i/o pin when the i/opcr control bits for that pin are programmed to b'01.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 30 table 38. i/opcr i/o port configuration register bits 7:6 bits 5:4 bits 3:2 bits 1:0 i/o3 control i/o2 control i/o1 control i/o0 control 00 gpi/txc input 01 i/opior[3] output 10 txc16x output 11 txc1x output 00 gpi/rxc input 01 i/opior[2]/rtsn * 10 rxc1x output 11 rxc16x output 00 gpi input 01 i/opior[1]/rtsn * 10 reserved 11 rxc1x output 00 gpi/ctsn input 01 i/opior[0]output 10 txc1x output 11 txc16x output * if i/opcr(5:4) is programmed as '01' then the rtsn functionality is assigned to i/o2, otherwise, this function can be implemented on i/o1. (this allows for a lower pin count package option) this register contains 4, 2 bit fields that set the direction and source for each of the i/o pins associated with the channel. the i/o2 output may be rtsn if mr1[7] is set, or may signal oend of transmissiono if mr2[5] is set.(please see the descriptions of these functions under the mr1 and mr2 register descriptions) if this control bit is cleared, the pin will use the opr[2] as a source if i/opcr[5:4] is b'01. the b'00 combinations are always inputs. this register resets to x'0, effectively configuring all i/o pins as inputs on power up or reset. inputs may be used as rxc, txc inputs or ctsn and general purpose inputs simultaneously. all inputs are equipped with change detectors that may be used to generate interrupts or can be polled, as required. note: to ensure that ctsn, rtsn and an external rxc are always available, if i/o2 is not selected as the rtsn output, the rtsn function is automatically provided on i/o1. general purpose output pin control the following four registers control the function of the g out 0 pin. these output pins have a unique control matrix which includes a clocking mechanism that will allow the pin to change synchronously with an internal or external stimulus. see diagram below. table 39. gposr general purpose output select register gposr selects the signal or data source for the g out 0 pin. the tx and rx clock selection is straight forward. the selection of the gpor allows a more flexible timing control of when the g out 0 pin changes. bits 7:4 bits 3:0 reserved global general purpose output 0 selection 0000 0111 reserved 1000 = txc1x a 1001 = txc16x a 1010 = rxc16x a 1011 = txc16x b 1100 = ggpor(3) 1101 = ggpor(2) 1110 = ggpor(1) 1111 = ggpor(0) table 40. gpor general purpose output register this register is a read/write register. its contents may be altered by a gpor write or by the gpoc and gpod registers shown below. the gpod and gpoc may be programmed to cause the individual bits of the gpor to change synchronously with internal or external events. the cells of this register may be thought of as a atwo port flip-flopo; one port is controlled by a d input and clock, the other by a data load strobe. a read of the gpor always returns its current value regardless of the port from which it was loaded. bits 7:4 bit 3 bit 2 bit 1 bit 0 reserved gpor(3) gpor(2) gpor(1) gpor(0) table 41. gpoc general purpose output clk register this controls the clock source for gpor that will clock and/or toggle the data from the selected gpod source. when code b'00 is selected, no clock will be provided, thereby preventing any change through the d port. bits 7:6 bits 5:4 bits 3:2 bits 1:0 clk sel gpor(3) clk sel gpor(2) clk sel gpor(1) clk sel gpor(0) 00 = none 01 = g in 0 10 = g in 1 11 = reserved 00 = none 01 = g in 0 10 = g in 1 11 = reserved 00 = none 01 = g in 0 10 = g in 1 11 = i/o3c 00 = none 01 = g in 0 10 = g in 1 11 = i/o3a table 42. gpod general purpose output data register this register selects the data that will be presented to the gpor ado input. note that selection b'10 selects the inverted gpor data as the input. in this case, the gpor output will toggle synchronously with the clock selected in the gpoc. bits 7:6 bits 5:4 bits 3:2 bits 1:0 data sel gpor(3) data sel gpor(2) data sel gpor(1) data sel gpor(0) 00 = '1' 01 = '0' 10 = gpor3n 11 = reserved 00 = '1' 01 = '0' 10 = gpor2n 11 = reserved 00 = '1' 01 = '0' 10 = gpor1n 11 = i/o3d 00 = '1' 01 = '0' 10 = gpor0n 11 = i/o3b
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 31 4:1 multiplex a1o a0o none 1/o3a d clock qn d input data read/write data in/out gporqn data bus 3:0 gpor r/w gpor gpod gposr 1/o3b g in 0 g in 1 4:1 multiplex gpo pin 8:1 multiplex txc1xa txc16xa rxc16xa txc16xb gpor(0) gpor(1) gpor(2) gpor(3) sd00526 gpoc 4 4 4 figure 1. general purpose pin control logic register maps the registers of the sc28l198 are partitioned into two groups: those used in controlling data channels and those used in handling the actual data flow and status. below is shown the general configuration of all the register addressed. the oregister map summaryo shows the configuration of the lower four bits of the address that is the same for the individual uarts. it also shows the addresses for the several in the address space of uart a and uart b that apply to the total chip configuration. the oregister map detailo shows the use of every address in the 8 bit address space. note: the register maps for channels a and b (uarts a and b) contain some control registers that configure the entire chip. these are denoted by a ? symbol. register map summary table 43. summary register map, control address (hex) ccc = channel register name acronym read / write 0ccc 0000 (x00) mode register 0 mr0a mr0 r/w 0ccc 0001 (x01) mode register 1 mr1a mr1 r/w 0ccc 0010 (x02) i/o port configuration reg a i/opcra iopcr r/w 0ccc 0011 (x03) bid control, break change bcrbrk r/w 0ccc 0100 (x04) bid control, change of state bcrcos r/w 0ccc 0110 (x06) bid control, xon/xoff bcrx r/w 0ccc 0111 (x07) bid control, address recognition bcra r/w 0ccc 1000 (x08) xon character register xoncr r/w 0ccc 1001 (x09) xoff character register xoffcr r/w 0ccc 1010 (x0a) address recognition character arcr r/w 0ccc 1100 (x0c) receiver clock select register rxcsr r/w 0000 1101 (x0d) ? test register reserved, set to 0 0ccc 1110 (x0e) transmitter clock select register txcsr r/w 0000 1111 (x0f) ? global chip configuration register gccr r/w 0001 1011 (x1b) ? interrupt control register icr r/w 0001 1101 (x1d) ? watch-dog timer run control wdtrcr r/w 0001 1111 (x1f) ? interrupt vector register ivr r/w
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 32 table 44. summary register map, data address (hex) ccc = channel register name acronym read/write 1ccc 0000 (x80) mode register 2 mr2 r/w 1ccc 0001 (x81) status register sr r 1ccc 0001 (x81) command register cr w 1ccc 0010 (x82) interrupt status register isr r 1ccc 0010 (x82) interrupt mask register imr w 1ccc 0011 (x83) transmitter fifo register txfifo w 1ccc 0011 (x83) receiver fifo reg rxfifo r 1ccc 0100 (x84) input port reg ipr r 1000 0100 (x84) ? brg timer reg upper a brgtrua w 1ccc 0101 (x85) i/o port interrupt and output i/opior r/w 1ccc 0110 (x86) xon/xoff interrupt status reg xisr r 1000 0111 (x87) ? gp out select reg gposr r/w 1000 1011 (x8b) ? gp out clk reg gpoc r/w 1000 1100 (x8c) ? update current interrupt reg ucir w 1000 1100 (x8c) ? current interrupt reg cir r 1001 1101 (x9d) ? brg timer reg upper b brgtrub w 1000 1110 (x8e) ? global receive fifo reg grxfifo r 1000 1110 (x8e) ? global transmit fifo reg gtxfifo w 1000 1111 (x8f) ? global chip configuration reg gccr r/w 1001 0100 (x94) ? brg timer reg lower a bgrtrla w 1001 0111 (x97) ? gp output reg gpor r/w 1001 1011 (x9b) ? gp out data reg gpod r/w 1001 1100 (x9c) ? brg timer control reg brgtcr w 1001 1100 (x9c) ? global interrupt channel reg gicr r 1001 1101 (x9d) ? brg timer reg lower b brgtrlb w 1001 1101 (x9d) ? global interrupt byte count gibcr r 1001 1111 (x9f) ? global interrupt type register gitr r register map detail table 45. register map, control note: the register maps for channels a and b (uarts a and b) contain some control registers that configure the entire chip. these are denoted by a ? symbol a(7:0) uart a a(7:0) read write 0000 0000 (x00) mode register 0 mr0a mode register 0 mr0a 0000 0001 (x01) mode register 1 mr1a mode register 1 mr1a 0000 0010 (x02) i/o port configuration reg a i/opcra i/o port configuration reg a i/opcra 0000 0011 (x03) bcrbrka bcrbrka 0000 0100 (x04) bcrcosa bcrcosa 0000 0101 (x05) reserved reserved 0000 0110 (x06) bcrxa bcrxa 0000 0111 (x07) bcraa bcraa 0000 1000 (x08) xon character reg a (xoncra) xon character reg a (xoncra) 0000 1001 (x09) xoff character reg a (xoffcra) xoff character reg a (xoffcra) 0000 1010 (x0a) address recognition character a (arcra) address recognition character a (arcra) 0000 1011 (x0b) reserved reserved 0000 1100 (x0c) receiver clock select register a (rxcsra) receiver clock select register a (rxcsra) 0000 1101 (x0d) ? test register test register 0000 1110 (x0e) xmit clock select register a txcsra) xmit clock select register a txcsra) 0000 1111 (x0f) ? global chip configuration reg(gccr) global chip configuration reg gccr)
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 33 a(7:0) uart b a(7:0) read write 0001 0000 (x10) mode register 0 mr0b mode register 0 mr0b 0001 0001 (x11) mode register 1 mr1b mode register 1 mr1b 0001 0010 (x12) i/o port configuration reg b i/opcrb i/o port configuration reg b i/opcrb 0001 0011 (x13) bcrbrkb bcrbrkb 0001 0100 (x14) bcrcosb bcrcosb 0001 0101 (x15) reserved reserved 0001 0110 (x16) bcrxb bcrxb 0001 0111 (x17) bcrab bcrab 0001 1000 (x18) xon character reg b (xoncrb) xon character reg b (xoncrb) 0001 1001 (x19) xoff character reg b (xoffcrb) xoff character reg b (xoffcrb) 0001 1010 (x1a) address recognition character b (arcrb) address recognition character b (arcrb) 0001 1011 (x1b) ? interrupt control register (icr) interrupt control register (icr) 0001 1100 (x1c) receiver clock select register b (rxcsrb) receiver clock select register b (rxcsrb) 0001 1101 (x1d) ? watch-dog timer run control (wdtrcr) watch-dog timer run control (wdtrcr) 0001 1110 (x1e) xmit clock select register b (txcsrb) xmit clock select register b (txcsrb) 0001 1111 (x1f) ? interrupt vector register (ivr) interrupt vector register (ivr) a(7:0) uart c a(7:0) read write 0010 0000 (x20) mode register 0 mr0c mode register 0 mr0c 0010 0001 (x21) mode register 1 mode register 1 mr1c 0010 0010 (x22) i/o port configuration reg c i/opcrc i/o port configuration reg c i/opcrc 0010 0011 (x23) bcrbrkc bcrbrkc 0010 0100 (x24) bcrcosc bcrcosc 0010 0101 (x25) reserved reserved 0010 0110 (x26) bcrxc bcrxc 0010 0111 (x27) bcrac bcrac 0010 1000 (x28) xon character reg c (xoncrc) xon character reg c (xoncrc) 0010 1001 (x29) xoff character reg c (xoffcrc) xoff character reg c (xoffcrc) 0010 1010 (x2a) address recognition character c (arcrc) address recognition character c (arcrc) 0010 1011 (x2b) reserved reserved 0010 1100 (x2c) receiver clock select register c (rxcsrc) receiver clock select register c (rxcsrc) 0010 1101 (x2d) reserved reserved 0010 1110 (x2e) xmit clock select register c (txcsrc) xmit clock select register c (txcsrc) 0010 1111 (x2f) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 34 a(7:0) uart d a(7:0) read write 0011 0000 (x30) mode register 0 mr0d mode register 0 mr0d 0011 0001 (x31) mode register 1 mr1d mode register 1 mr1d 0011 0010 (x32) i/o port configuration reg d i/opcrd i/o port configuration reg d i/opcrd 0011 0011 (x33) bcrbrkd bcrbrkd 0011 0100 (x34) bcrcosd bcrcosd 0011 0101 (x35) reserved reserved 0011 0110 (x36) bcrxd bcrxd 0011 0111 (x37) bcrad bcrad 0011 1000 (x38) xon character reg d (xoncrd) xon character reg d (xoncrd) 0011 1001 (x39) xoff character reg d (xoffcrd) xoff character reg d (xoffcrd) 0011 1010 (x3a) address recognition character d (arcrd) address recognition character d (arcrd) 0011 1011 (x3b) reserved reserved 0011 1100 (x3c) receiver clock select register d (rxcsrd) receiver clock select register d (rxcsrd) 0011 1101 (x3d) reserved reserved 0011 1110 (x3e) xmit clock select register d (txcsrd) xmit clock select register d (txcsrd) 0011 1111 (x3f) reserved reserved a(7:0) read write uart e 01000000 (x40) mode register 0 mr0e mode register 0 mr0e 01000001 (x41) mode register 1 mr1e mode register 1 mr1e 01000010 (x42) i/oport configuration reg e i/opcre i/oport configuration reg e i/opcre 01000011 (x43) bcrbrke bcrbrke 01000100 (x44) bcrcose bcrcose 01000101 (x45) reserved reserved 01000110 (x46) bcrxe bcrxe 01000111 (x47) bcrae bcrae 01001000 (x48) xon character reg e (xoncre) xon character reg e (xoncre) 01001001 (x49) xoff character reg e (xoffcre) xoff character reg e (xoffcre) 01001010 (x4a) address recognition char e (arcre) address recognition char e (arcre) 01001011 (x4b) reserved reserved 01001100 (x4c) receiver clock select register e (rxcsre) receiver clock select register e (rxcsre) 01001101 (x4d) reserved reserved 01001110 (x4e) xmit clock select register e (txcsre) xmit clock select register e (txcsre) 01001111 (x4f) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 35 uart f 01010000 (x50) mode register 0 mr0f mode register 0 mr0f 01010001 (x51) mode register 1 mr1f mode register 1 mr1f 01010010 (x52) i/oport configuration reg f i/opcrf i/oport configuration reg f i/opcrf 01010011 (x53) bcrbrkf bcrbrkf 01010100 (x54) bcrcosf bcrcosf 01010101 (x55) reserved reserved 01010110 (x56) bcrxf bcrxf 01010111 (x57) bcraf bcraf 01011000 (x58) xon character reg f (xoncrf) xon character reg f (xoncrf) 01011001 (x59) xoff character reg f (xoffcrf) xoff character reg f (xoffcrf) 01011010 (x5a) address recognition char f (arcrf) address recognition char f (arcrf) 01011011 (x5b) reserved reserved 01011100 (x5c) receiver clock select register f (rxcsrf) receiver clock select register f (rxcsrf) 01011101 (x5d) reserved reserved 01011110 (x5e) xmit clock select register f (txcsrf) xmit clock select register f (txcsrf) 0101 1111 (x5f) reserved reserved a(7:0) read write uart g 01100000 (x60) mode register 0 mr0g mode register 0 mr0g 01100001 (x61) mode register 1 mr1g mode register 1 mr1g 01100010 (x62) i/oport configuration reg g i/opcrg i/oport configuration reg g i/opcrg 01100011 (x63) bcrbrkg bcrbrkg 01100100 (x64) bcrcosg bcrcosg 01100101 (x65) reserved reserved 01100110 (x66) bcrxg bcrxg 01100111 (x67) bcrag bcrag 01101000 (x68) xon character reg g (xoncrg) xon character reg g (xoncrg) 01101001 (x69) xoff character reg g (xoffcrg) xoff character reg g (xoffcrg) 01101010 (x6a) address recognition char g (arcrg) address recognition char g (arcrg) 01101011 (x6b) reserved reserved 01101100 (x6c) receiver clock select register g (rxcsrg) receiver clock select register g (rxcsrg) 01101101 (x6d) reserved reserved 01101110 (x6e) xmit clock select register g (txcsrg) xmit clock select register g (txcsrg) 01101111 (x6f) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 36 uart h 01110000 (x70) mode register 0 mr0h mode register 0 mr0h 01110001 (x71) mode register 1 mr1h mode register 1 mr1h 01110010 (x72) i/oport configuration reg h i/opcrh i/oport configuration reg h i/opcrh 01110011 (x73) bcrbrkh bcrbrkh 01110100 (x74) bcrcosh bcrcosh 01110101 (x75) reserved reserved 01110110 (x76) bcrxh bcrxh 01110111 (x77) bcrah bcrah 01111000 (x78) xon character reg h (xoncrh) xon character reg h (xoncrh) 01111001 (x79) xoff character reg h (xoffcrh) xoff character reg h (xoffcrh) 01111010 (x7a) address recognition char h (arcrh) address recognition char h (arcrh) 01111011 (x7b) reserved reserved 01111100 (x7c) receiver clock select register h (rxcsrh) receiver clock select register h (rxcsrh) 01111101 (x7d) reserved reserved 01111110 (x7e) xmit clock select register h (txcsrh) xmit clock select register h (txcsrh) 01111111 (x7f) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 37 table 46. register map, data a(7:0) uart a a(7:0) read write 1000 0000 (x80) mode register a (mr2a) mode register a (mr2a) 1000 0001 (x81) status register a (sra) command register a (cra) 1000 0010 (x82) interrupt status register a (isra) interrupt mask register a (imra) 1000 0011 (x83) receiver fifo reg a (rxfifoa) transmitter fifo reg a (txfifoa) 1000 0100 (x84) reserved ? brg timer reg upper a (brgtrua) 1000 0100 (x84) input port reg a (ipra) reserved 1000 0101 (x85) i/o port interrupt and output a i/opiora) i/o port interrupt and output a (i/opiora) 1000 0110 (x86) xon/xoff interrupt status reg a (xisra) reserved 1000 0111 (x87) ? gp out select reg (gposr) gp out select reg (gposr) 1000 1011 (x8b) ? gp out clk reg (gpoc) gp out clk reg (gpoc) 1000 1100 (x8c) ? current interrupt reg (cir) ? update cir 1000 1101 (x8d) reserved ? brg timer reg upper b (brgtrub) 1000 1110 (x8e) ? global receive fifo reg (grxfifo) ? global transmit fifo reg (gtxfifo) 1000 1111 (x8f) ? global chip configuration reg (gccr) ? global chip configuration reg (gccr) a(7:0) uart b a(7:0) read write 1001 0000 (x90) mode register b (mr2b) mode register b (mr2b) 1001 0001 (x91) status register b (srb) command register b (crb) 1001 0010 (x92) interrupt status register b (isrb) interrupt mask register b (imrb) 1001 0011 (x93) receiver fifo reg b (rxfifob) transmitter fifo reg b (txfifob) 1001 0100 (x94) reserved ? brg timer reg lower a (brgtrla) 1001 0100 (x94) input port reg b (iprb) reserved 1001 0101 (x95) i/o port interrupt and output b (i/opiorb) i/o port interrupt and output b (i/opiorb) 1001 0110 (x96) xon/xoff interrupt status reg b (xisrb) reserved 1001 0111 (x97) ? gp output reg (gpor) ? gp output reg (gpor) 1001 1010 (x9a) reserved reserved 1001 1011 (x9b) ? gp out data reg (gpod) ? gp out data reg (gpod) 1001 1100 (x9c) reserved ? brg timer control reg (brgctcr) 1001 1100 (x9c) ? global interrupt channel reg (gicr) reserved 1001 1101 (x9d) reserved ? brg timer reg lower b (brgtrlb) 1001 1101 (x9d) ? global interrupt byte count (gibcr) reserved 1001 1110 (x9e) reserved reserved 1001 1111 (x9f) ? global interrupt type register (gitr) reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 38 a(7:0) uart c a(7:0) read write 1010 0000 (xa0) mode register c (mr2c) mode register c (mr2c) 1010 0001 (xa1) status register c (src) command register c (crc) 1010 0010 (xa2) interrupt status register c (isrc) interrupt mask register c (imrc) 1010 0011 (xa3) receiver fifo reg c (rxfifoc) transmitter fifo reg c (txfifoc) 1010 0100 (xa4) input port reg c (iprc) reserved 1010 0101 (xa5) i/o port interrupt and output c (i/opiorc) i/o port interrupt and output c (i/opiorc) 1010 0110 (xa6) xon/xoff interrupt status reg c (xisrc) reserved 1010 0111 (xa7) reserved reserved 1010 1000 (xa8) reserved reserved 1010 1001 (xa9) reserved reserved 1010 1010 (xaa) reserved reserved 1010 1011 (xab) reserved reserved 1010 1100 (xac) reserved reserved 1010 1101 (xad) reserved reserved 1010 1110 (xae) reserved reserved 1010 1111 (xaf) reserved reserved a(7:0) uart d a(7:0) read write 1011 0000 (xb0) mode register d (mr2d) mode register d (mr2d) 1011 0001 (xb1) status register d (srd) command register d (crd) 1011 0010 (xb2) interrupt status register d (isrd) interrupt mask register d (imrd) 1011 0011 (xb3) receiver fifo reg d (rxfifod) transmitter fifo reg d (txfifod) 1011 0100 (xb4) input port reg d (iprd) reserved 1011 0101 (xb5) i/o port interrupt and output d (i/opiord) i/o port interrupt and output d (i/opiord) 1011 0110 (xb6) xon/xoff interrupt status reg d (xisrd) reserved 1011 0111 (xb7) reserved reserved 1011 1000 (xbb) reserved reserved 1011 1001 (xb9) reserved reserved 1011 1010 (xba) reserved reserved 1011 1011 (xbb) reserved reserved 1011 1100 (xbc) reserved reserved 1011 1101 (xbd) reserved reserved 1011 1110 (xbe) reserved reserved 1011 1111 (xbf) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 39 a(7:0) read write uart e 11000000 (xc0) mode register e (mr2e) mode register e (mr2e) 11000001 (xc1) status register e (sre) command register e (cre) 11000010 (xc2) interrupt status register e (isre) interrupt mask register e (imre) 11000011 (xc3) receiver fifo reg e (rxfifoe) transmitter fifo reg e (txfifoe) 11000100 (xc4) input port reg e (ipre) reserved 11000101 (xc5) i/o port interrupt and output e (i/opiore) i/o port interrupt and output e (i/opiore) 11000110 (xc6) xon/xoffinterrupt status reg e (xisre) reserved 11000111 (xc7) reserved reserved 11001000 (xc8) reserved reserved 11001001 (xc9) reserved reserved 11001010 (xca) reserved reserved 11001011 (xcb) reserved reserved 11001100 (xcc) reserved reserved 11001101 (xcd) reserved reserved 11001110 (xce) reserved reserved 11001111 (xcf) reserved reserved uart f 11010000 (xd0) mode register f (mr2f) mode register f (mr2f) 11010001 (xd1) status register f (srf) command register f (crf) 11010010 (xd2) interrupt status register f (isrf) interrupt mask register f (imrf) 11010011 (xd3) receiver fifo reg f (rxfifof) transmitter fifo reg f (txfifof) 11010100 (xd4) input port reg f (iprf) reserved 11010101 (xd5) i/o port interrupt and output f (i/opiorf) i/o port interrupt and output f (i/opiorf) 11010110 (xd6) xon/xoffinterrupt status reg f (xisrf) reserved 11010111 (xd7) reserved reserved 11011000 (xd8) reserved reserved 11011001 (xd9) reserved reserved 11011010 (xda) reserved reserved 11011011 (xdb) reserved reserved 11011100 (xdc) reserved reserved 11011101 (xdd) reserved reserved 11011110 (xde) reserved reserved 11011111 (xdf) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 40 a(7:0) read write uart g 11100000 (xe0) mode register g (mr2g) mode register g (mr2g) 11100001 (xe1) status register g (srg) command register g (crg) 11100010 (xe2) interrupt status register g (isrg) interrupt mask register g (imrg) 11100011 (xe3) receiver fifo reg g (rxfifog) transmitter fifo reg g (txfifog) 11100100 (xe4) input port reg g (iprg) reserved 11100101 (xe5) i/o port interrupt and output g (i/opiorg) i/o port interrupt and output g (i/opiorg) 11100110 (xe6) xon/xoffinterrupt status reg g (xisrg) reserved 11100111 (xe7) reserved reserved 11101000 (xe8) reserved reserved 11101001 (xe9) reserved reserved 11101010 (xea) reserved reserved 11101011 (xeb) reserved reserved 11101100 (xec) reserved reserved 11101101 (xed) reserved reserved 11101110 (xee) reserved reserved 11101111 (xef) reserved reserved uart h 11110000 (xf0) mode register h (mr2h) mode register h (mr2h) 11110001 (xf1) status register h (srh) command register h (crh) 11110010 (xf2) interrupt status register h (isrh) interrupt mask register h (imrh) 11110011 (xf3) receiver fifo reg h (rxfifoh) transmitter fifo reg h (txfifoh) 11110100 (xf4) input port reg h (iprh) reserved 11110101 (xf5) i/o port interrupt and output h (i/opiorh) i/o port interrupt and output h (i/opiorh) 11110110 (xf6) xon/xoffinterrupt status reg h (xisrh) reserved 11110111 (xf7) reserved reserved 1111 1000 (xf8) reserved reserved 1111 1001 (xf9) reserved reserved 1111 1010 (xfa) reserved reserved 11111011 (xfb) reserved reserved 11111 100 (xfc) reserved reserved 11111 101 (xfd) reserved reserved 11111110 (xfe) reserved reserved 11111111 (xff) reserved reserved
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 41 reset conditions device configuration after hardware reset or cra cmd=x1f cleared registers: channel status registers (sr) channel interrupt status registers (isr) channel interrupt mask registers (imr) channel interrupt xon status register (xisr) interrupt control register (icr) global configuration control register (gccr) hence the device enters the asynchronous bus cycling mode. current interrupt register (cir) brg timer run control register (brgtcr) watch-dog timer run control register (wdtrcr) channel input/output port configuration registers (i/opcr) hence all i/o pins have direction = input after reset brg counter/timer registers clears modes for: power down test modes input port changed bits gang write to xon or xoff xon/xoff/address detection receiver error status disables: transmitters receivers interrupts, current and future halts: brg counters bus cycle in progress (hardware reset only) limitations: minimum resetn pin pulse width is 10 sclk cycles after vcc reaches operational range the user must allow a minimum of 6 sclk cycles to elapse after a reset (resetn pin or cra initiated) of the device terminates before initiating a new bus cycle.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 42 dc electrical specifications for commercial and industrial (5v) v cc = 5.0 volts 10%; t a = 40 c to +85 c; unless otherwise specified symbol parameter test limits unit conditions min typ 1 max v il v ih v ih input low voltage 2 input high voltage (except x1/clk) input high voltage (x1/clk) v ss 2.0 0.8v cc 0.8 vcc vcc v v ol 3 v oh v ol 3 output low voltage 4 output high voltage (except od outputs) open drain low voltage i ol = 4.0ma i oh = 400 a i oh = 100 a i ol = 14.0 ma 0.8v cc 0.9v cc 0.15 <0.25 0.4 0.4 v v i il i ih input current low, i/o pins input current high, i/o pins v in = 0 vi n = vcc 10 <0.1 <0.1 10 a i l input leakage current v in = 0 to vcc 5 <1 5 a i ilckx1 i ihckx1 x1/clk input low current x1/clk input high current v in =vss,x2=open vin=vcc, x2=open 450 450 a i ozh i ozl output off current high, 3state data bus output off current low, 3state data bus v in = v cc v in = 0 10 <.1 <.1 10 a a i odl i odh opendrain output low current in off state open drain output high current in off state v in = 0 v in = v cc 10 <.1 <.1 10 a i cc power supply current operating mode 33 mhz static power down (no clocks, opendrains off, inputs at v ss or v cc ) ttl input levels cmos input levels cmos input levels 100 26 0.6 150 40 5 ma ma a notes: 1. typical values are at +25 c, typical supply voltage and typical processing parameters. 2. all voltage measurements are referenced to v ss . for testing, all inputs swing between 0.4 v and 2.4 v with a transition time of 10 ns maximum. for x1/clk this swing is between 0.4 v and 4.4 v. all time measurements are referenced at input voltages of v il and v ih as appropriate. 3. test conditions for itnerrupt and i/o outputs: cl = 50 pf. test conditions for the rest of the outputs: cl = 60 pf. 4. simultaneous switching more than 6 i/o port pins from 5 volts to 0 volts at full capacitive load may ground bounce on the out put pins up to 0.95 volts. 5. all r x , t x , brg timer, i/o pins operating at 16 mhz. sclk at 35 mhz and v cc at 5.6 volts. a worstcase environment.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 43 ac electrical characteristics for commercial and industrial (5v) v cc = 5.0 volts 10%; t a = 40 c to +85 c; unless otherwise specified symbol fig # parameter limit unit min typ max reset timing t res 1 reset pulse width 10 sclk bus timing t as a0a7 setup time before sclk c3 rising edge 10 2 ns t ah a0a7 hold time after sclk c3 rising edge 18 8 ns t cs cen setup time before sclk c1 high (sync) 5 3 ns cen setup time before sclk c2 high (async) 5 3 ns t ch cen hold time after sclk c3 high (sync) 14 1 sclk ns cen hold time after sclk c4 high (async) 25 1 sclk ns t stp cen high before next c2 to stop next cycle (sync mode) 2 18 ns t rws wrn setup time before sclk c2 rising edge 5 ns t rwh wrn hold time after sclk c3 rising edge 14 1 sclk ns t dd read cycle data valid after sclk c3 rising edge 12 25 ns t df read cycle data bus floating after cen high (sync) 10 16 ns read cycle data bus floating after c4 end high (async) 10 15 ns t ds write cycle data setup time before sclk c4 rising edge 25 14 ns t dh write cycle data hold time after sclk c4 rising edge 15 8 ns t rwd high time between cen low (async) 12 sclk ns i/o port pin timing t ps i/o input setup time before sclk c3 rising edge 18 4 ns t ph i/o input hold time after sclk c4 rising edge 12 1 ns t pd i/o output valid from: write sclk c4 rising edge (write to iopior) 32 50 ns interrupt timing t ir irqn from: internal interrupt source active bid reset to irqn inactive write imr (set or clear imr bit) 3 22 26 43 75 45 sclk ns ns t dd iackn cycle data valid after sclk c3 rising edge 12 25 ns tx/rx clock timing t rx rxc high or low time 15 8 ns f rx 4 rxc frequency (16 x) (1 x) 0 0 16 1 mhz mhz t tx txc high or low time 15 7 ns f tx 4 txc frequency (16 x) (1 x) 0 0 16 1 mhz mhz transmitter timing t txd txd output delay from txc low 32 60 ns ttcs txc output delay from txd output data 15 4 15 ns receiver timing t rxs rxd data setup time to rxc high (data) 20 4 ns t rxh rxd data hold time from rxc high (data) 20 6 ns ts strt rxd data low time for receiving a valid start bit 17/32 bit time
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 44 ac electrical characteristics for commercial and industrial (5 v) (continued) v cc = 5.0 volts 10 %; t a = 40 c to +85 c; unless otherwise specified symbol fig# parameter limits unit min typ max sclk timing t sclkl min low time at v il (0.8v) 11 5 ns t sclkh min high time at v ih (2.0v) 11 5 ns f sclk sclk frequency 0.1 33 mhz t/ rfsck sclk rise and fall time (0.8 to 2.0volts) 3 ns x1/x2 communication crystal clock fx1 5 x1 clock frequency 1 3.6864 8.0 mhz x1 l / h x1 low / high time 32 135 ns t/rfx1 x1 rise and fall time 10 ns counter/timer baud rate clock (external clock input) fc/t 4 clock frequency 0 8 mhz tc/tlh c/t high and low time 15 11 ns tc/to delay c/t clock external to output pin 48 60 ns dtack timing dakdly dack low from sclk c4 rising edge 10 18 ns dakdlya dack high from cen high (async) 11 20 ns dakdlys dack high from c4 end rising edge (sync) 11 20 ns i/o port external clock tgpirtx gpi to rx/tx clock out 32 50 ns rxd setup to i/op rising edge 1x mode 20 2 ns i/op falling edge to txd out 1x mode 32 60 ns gout timing gpotdd gpo valid after write to gpor 100 ns notes: 1. timing is illustrated and referenced with respect to wrn and cen inputs. internal read and write activities are controlled b y the sclk as it generates the several aco timing as shown in the timing diagrams. 2. the minimum time before the rising edge of the next c2 time to stop the next bus cycle. cen must return high after midpoint o f c4 time and before the c2 time of the next cycle. 3. delay is from cen high in async mode to irqn inactive, from end of c4 to irqn inactive in sync mode. 4. the minimum frequency values are not tested, but are guaranteed by design. 5. 1mhz specification is for crystal operation.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 45 dc electrical specifications for commercial and industrial (3.3 v) v cc = 3.3 volts 10%; t a = 40 c to +85 c; unless otherwise specified limits symbol parameter test conditions min typ 1 max unit v il v ih v ih input low voltage 2 input high voltage (except x1/clk) input high voltage (x1/clk) v ss 0.8 * v cc 0.8 * v cc 0.2 * v cc v cc v cc v v ol 3 v oh v ol 3 output low voltage 4 output high voltage (except od outputs) open drain low voltage i ol = 3.2ma i oh = 400 a i oh = 100 a i ol = 10.0ma 0.8v cc 0.9v cc 0.15 <0.25 0.4 0.4 v v i il i ih input current low, i/o pins input current high, i/o pins v in = 0 v in = v cc 5 <0.1 <0.1 +5 a i l input leakage current v in = 0 to v cc 5 <1 5 a i ilckx1 i ihckx1 x1/clk input low current x1/clk input high current v in =v ss ,x2=open v in =v cc , x2=open 300 300 a i ozh i ozl output off current high, 3state data bus output off current low, 3state data bus v in = vcc vi n = 0 5 <.1 <.1 5 a a i odl i odh opendrain output low current in off state open drain output high current in off state v in = 0 v in = v cc 5 <.1 <.1 5 a i cc power supply current operating mode 33 mhz static power down (no clocks, open drains off, inputs at vss or vcc) ttl input levels cmos input levels cmos input levels 22 12 0.6 35 20 5 ma ma a notes: 1. typical values are at +25 c, typical supply voltage and typical processing parameters. 2. all voltage measurements are referenced to v ss . for testing, all inputs swing between 0.4 v and 2.4 v with a transition time of 10 ns maximum. for x1/clk this swing is between 0.2v and 2.88v. all time measurements are referenced at input voltages of v il and v ih as appropriate. 3. test conditions for itnerrupt and i/o outputs: cl = 50 pf. test conditions for the rest of the outputs: c l = 60 pf. 4. simultaneous switching more than 6 i/o port pins from 5 volts to 0 volts at full capacitive load may ground bounce on the out put pins up to 0.95 volts. 5. all r x , t x , brg timer, i/o pins operating at 16 mhz. sclk at 35 mhz and v cc at 5.6 volts. a worstcase environment.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 46 ac electrical characteristics for commercial and industrial (3.3 v) v cc = 3.3 volts 10%; t a = 40 c to +85 c; unless otherwise specified symbol figure parameter limits unit symbol figure parameter min typ max unit reset timing t res 1 reset pulse width 10 sclk bus timing t as a0-a7 setup time before sclk c3 rising edge 22 3 ns t ah a0-a7 hold time after sclk c3 rising edge 30 12 ns t cs cen setup time before sclk c1 high (async) 8 3 ns t cs cen setup time before sclk c2 high (sync) 8 3 ns t ch cen hold time after sclk c3 high (sync) 25 1 sclk ns t ch cen hold time after sclk c4 high (async) 50 1 sclk ns t stp cen high befoe next c2 to stop next cycle (sync mode) 2 30 ns t rws w-rn setup time before sclk c2 rising edge 7 ns t rwh w-rn hold time after sclk c3 rising edge 25 1 sclk ns t dd read cycle data valid after sclk c3 falling edge 20 40 ns t df read cycle data bus floating after cen high (async) 17 30 ns t df read cycle data bus floating after c4 end (sync) 11 20 ns t ds write cycle data setup time before sclk c4 rising edge 25 14 ns t dh write cycle data hold time after sclk c4 rising edge 25 14 ns t rwd high time between cen low (async) 15 sclk ns i/o port pin timing t ps i/o input setup time before sclk c3 falling edge (read ipr) 18 4 ns t ph i/o input hold time after sclk c4 rising edge (read ipr) 12 4 ns t pd i/o output valid from: write sclk c4 rising edge (write to i/opior) 50 80 ns interrupt timing t ir irqn from: internal interrupt source active bid software reset to irqn inactive write imr (set or clear imr bit)) 3 to irqn inactive 22 26 60 40 43 90 60 sclk ns ns t dd interrupt vector valid after c3 rising edge 20 30 ns t x / rx clock timing, external t rx rxc high or low time 25 8 ns f rx 4 rxc frequency (16 x) (1 x) 0 0 8 1 mhz t tx txc high or low time 20 7 ns f tx 4 txc frequency (16 x) (1 x) 0 0 8.0 1 mhz mhz transmitter timing t txd txd output delay from txc low 50 90 ns t tcs txc output delay from txd output data -15 4 15 ns receiver timing t rxs rxd data setup time to rxc high (data) 25 14 ns t rxh rxd data hold time from rxc high (data) 25 14 ns ts strt rxd data low time to for receiving a valid start bit 17 32 bit time sclk timing t sclkl min low time at vil (0.8v) 15 10 ns t sclkh min high time at vih (2.0v) 15 10 ns
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 47 ac electrical characteristics for commercial and industrial (3.3 v) (continued) symbol figure parameter limits unit symbol figure parameter min typ max unit fsclk sclk frequency 0.1 20 mhz t/rfsclk sclk rise/fall time (0.8 to 2.0volts) 5 ns x1 / x2 communication crystal clock fx1 5 x1 clock frequency 1 3.6864 4 mhz x1 l / h x1 low / high time 80 52 ns t/rfx1 x1 rise / fall time 10 ns counter/timer baud rate clock (external clock input) fc/t 4 clock frequency 0 8 mhz tc/tlh c/t high and low time 20 15 ns tc/to delay c/t clock external to output pin 48 110 ns dackn timing dak dly dack low from sclk c4 rising edge 18 30 ns dak dlya dack high from cen high (async) 18 30 ns dak dly dack high from c4 end rising edge (sync) 20 30 ns i/o port external clock t gpirtx gpi to rx/tx clock out 50 80 ns rxd setup to i/op rising edge 1x mode 20 2 ns i/op falling edge to txd out 1x mode 32 70 ns g out timing gpo tdd gpo valid after write to gpor 100 ns notes: 1. timing is illustrated and referenced with respect to wrn and cen inputs. internal read and write activities are controlled b y the sclk as it generates the several aco timing as shown in the timing diagrams. 2. the minimum time before the rising edge of the next c2 time to stop the next bus cycle. cen must return high after midpoint o f c4 time and before the c2 time of the next cycle. 3. delay is from cen high in async mode to irqn inactive, from end of c4 to irqn inactive in sync mode. 4. the minimum frequency values are not tested, but are guaranteed by design. 5. 1mhz specification is for crystal operation.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 48 sclk cen w_rn address data dackn invalid valid c1 c2 c3 c4 t cs invalid invalid valid invalid t rws t as t ah t ds dak dly t dh c4 dak dly cen high t ch t rwd t rwh sd00194 figure 2. basic write cycle, async sclk cen w_rn address data dackn invalid valid c1 c2 c3 c4 t cs invalid invalid valid invalid t rws t as t ah t ds dak dly t dh c4 dak dly c4 end t ch t stp t rwh sd00195 c1 c2 figure 3. basic write cycle, sync
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 49 t rwd sclk cen w_rn address data dackn invalid valid c1 c2 c3 c4 t cs invalid invalid valid invalid t rws t as t ah t dd dak dly t df c4 dak dly cen t ch t rwh data=00 sd00196 figure 4. basic read cycle, async t ch t stp sclk cen w_rn address data dackn invalid valid c1 c2 c3 c4 t cs invalid invalid valid invalid t rws t as t ah t dd dak dly t df c4 dak dly c4 end t rwh data=00 sd00197 c1 c2 figure 5. basic read cycle, sync
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 50 sclk iackn cen w_rn address data dackn invalid don't care c1 c2 c3 c4 valid t cs t rws t as t ah t dd dak dly c4 dak dly cen high t df invalid invalid invalid don't care note: cen must not be active during an iackn cycle. if cen is active, iackn will be ignored and a normal read or write will be executed according to w_rn. in the synchronous mode, extended iackn signal will start another iackn. (this may not be desired, but is allowed.) sd00525 figure 6. basic iackn cycle, async/sync c1 and c2 should be chosen according to the crystal manufacturer's specification. c1 and c2 values will include any parasitic capacitance of the wiring. f x1 +5v 1k required for ttl gate. x1 x2 c1 = c2 = 24pf for c l = 20pf x1 x2 3.6864mhz 3pf 4pf 50 kohms to 150 kohms 28c198 notes: c1 and c2 should be based on manufacturer's specification. x1 and x2 parasitic capacitance is 1-2pf and 3-5pf, respectively. gain: at 4mhz 8 to 14db; at 8mhz 2 to 6db phase: at 4mhz 272 to 276 ; at 8mhz 272 to 276 the above figures for 5v operation. operation at 3v is to be determined. typical crystal specification frequency: 2 4mhz load capacitance (c l ): 12 32pf type of operation: parallel resonant, fundamental mode nc c1 c2 mux to remainder of circuit 2 38.4khz clock brg to i/o change-of-state detectors 22 standard baud rates x1 l/h t/r f x1 sd00198 figure 7. x1/x2 communication crystal clock
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 51 f sclk t sclkl t/rf sclk t sclkh sd00199 figure 8. sclk timing fc/t tc/tl t/rf sclk tc/th tc/to sd00200 figure 9. counter/timer baud rate clock, external frx trx t/rf tc/th tc/to ttx ftx sd00201 figure 10. tx/rx clock timing, external 1x data clock t rxs t rxh t txd rxd txd sd00202 figure 11. transmitter and receiver timing note: cen must not be active during an iackn cycle. if cen is active iackn will be ignored and a normal read or write will be executed according to w_rn. in the synchronous mode extended iackn signal cycle will start another iackn. (this may not be desired but is allowed)
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 52 index numbers 1x and 16x modes, receiver, 9 1x and 16x modes, transmitter, 9 a address recognition character register, 25 arcr, 25 asynchronous bus cycle, 6 b baud rate generator , 7 bcra, 25 bcrbrk, 24 bcrcos, 24 bcrx, 24 bidding control register address, 25 bidding control register break change, 24 bidding control register change of state, 24 bidding control register xon, 24 block diagram, 6 break, transmission of, 9 brg timer control register, 26 brg timer reload registers, lower, 26 brg timer reload registers, upper, 26 brgctcr , 26 brgtrl, 26 brgtru, 26 c cen, 6 channel blocks, 7 channel status register, 22 character recognition, 7 characterstripping, 11 cir, 27 clock register, rx & tx, 20 command register, 21 command register table, 22 cr , 21 crystal oscillator, 7 current interrupt register, 27 d description, 2 description, over all, 6 f framing error, 10 g gccr, 17 general purpose output clk register, 29 general purpose output data register, 29 general purpose output register, 29 general purpose output select register, 29 general purpose pins, 11 gibcr, 28 gicr, 27 gitr, 28 global configuration control register (gccr), 17 global interrupting byte count register, 28 global interrupting channel register, 27 global registers, 8, 11 global rxfifo register, 28 global txfifo register, 28 gpoc , 29 gpod, 29 gpor, 29 gposr, 29 grxfifo, 28 gtxfifo, 28 h host interface, 6 host interface, 6 i i/o port configuration register, 29 i/o port interrupt and output register, 28 i/o ports, 10 i/opcr, 10, 29 i/opior, 28 iackn, 8 iackncycle, 12 icr, 27 imr, 8, 24 index, 51 input port register, 28 interrupt arbitration, 11 interrupt control, 8 interrupt mask register, 24 interrupt priorities, setting, 12 interrupt sources, enabling, 12 interrupt status register, 23 interrupt vector register, 27 interrupts, xon/xoff, 16 iopior register, 11 ipr , 28 isr, 8, 23 ivr, 27 m minor modes, 14 mode control, xon/xoff, 16 mode register 0, 18 mode register 1, 18 mode register 2, 19 mode registers, initialization, 17 modes of operation, 13 mr0 , 18 mr1, 18 mr2, 19 multidrop mode, 11 o overrun error, 10 p parity error, 10 pin description, 5 pinout, 4 polling, 12 r receiver, 9 receiver fifo, 10, 24 receiver status bits, 9 register descriptions, 17 register map, 30 register map, control, 30, 31 register map, data, 31, 36 reset conditons, 40 rxcsr , 20 rxfifo, 24
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 53 s sclk, 6 sr , 22 synchronous bus cycle, 6 system clock, 7 t timing circuits, 6 transmitter, 8 transmitter fifo, 9, 24 tx, status bits , 8 txcsr , 20 txemt, 8 txfifo, 24 txrdy, 8 u ucir, 27 update cir, 12, 27 w wake up mode, 14 wake up mode, 11 wake up modes, 14 wake up. default, 14 watchdog timer , 14 watchdog timer enable register, 26 wdtrcr, 26 x xisr, 26 xoff character register, 25 xoffcr, 25 xon /xoff characters , 15 xon character register, 25 xonxoff interrupt status register, 26 xon/xoff modes, 15 xon/xoff operation, 15 xoncr , 25
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 54 plcc84: plastic leaded chip carrier; 84 leads sot189-2
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 55 lqfp100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm sot407-1
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage 2006 aug 10 56 revision history rev date description _6 20060810 product data sheet (9397 750 14852). supersedes data of 1999 jan 14 (9397 750 04754). modifications: ? ordering information table: changed dwg # sot1893 to sot1892 ? package outline drawing sot1893 replaced with sot1892 _5 19990114 product specification (9397 750 04754). ecn #8532047 20654. supersedes data of 1998 nov 04. _4 19981104 preliminary specification (9397 750 04754). supersedes data of 1998 sep 21. _3 19980921 preliminary specification (9397 750 04366). replaces data sheet sc28c198_sc28l198_2 of of 1998 feb 06.
philips semiconductors product data sheet sc28l198 octal uart for 3.3 v and 5 v supply voltage yyyy mmm dd 57 this document contains data from the preliminary specification. development preliminary [short] data sheet data sheet status document status [1][2] objective [short] data sheet product status [3] definition this document contains data from the objective specification for product development. [1] please consult the most recently issued document before initiating or completing a design. [2] the term `short data sheet' is explained in section adefinitionso. [3] the product status of device(s) described in this document may have changed since this data sheet was published and may diff er in case of multiple devices. the latest product status information is available on the internet at url http://www.semiconductors.philips.com. qualification product [short] data sheet production this document contains the product specification. definitions draft e the document is a draft version only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. philips semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. short data sheet e a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request via the local philips semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. disclaimers general e information in this document is believed to be accurate and reliable. however, philips semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes e philips semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use e philips semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of a philips semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. philips semiconductors accepts no liability for inclusion and/or use of philips semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer's own risk. applications e applications that are described herein for any of these products are for illustrative purposes only. philips semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. limiting values e stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale e philips semiconductors products are sold subject to the general terms and conditions of commercial sale, as published at http://www.semiconductors.philips.com/profile/terms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writing by philips semiconductors. in case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license e nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. trademarks notice: all referenced brands, product names, service names and trademarks are the property of their respective owners. contact information for additional information please visit: http://www.semiconductors.philips.com for sales office addresses, send an e-mail to: sales.addresses@www.semiconductors.philips.com . please be aware that important notices concerning this document and the product(s) described herein, have been included in section `legal information'. ? koninklijke philips electronics n.v. 2006. all rights reserved. for more information, please visit http://www.semiconductors.philips.com. for sales office addresses, email to: sales.addresses@www.semiconductors.philips.com. date of release: 20060810 document identifier: sc28l198_6 legal information


▲Up To Search▲   

 
Price & Availability of SC28L198A1BE

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X